Boost logo

Boost Users :

Subject: Re: [Boost-users] [BOOST::XPRESSIVE] Trouble with functor
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2011-02-04 12:01:16


AMDG

On 2/4/2011 8:51 AM, Norbert Hauck wrote:
> Hi again,
> and sorry for the repost - I had a fat finger accident and clicked the send button to early! If I managed to delete the old message prior to posting this one please ignore. To the point:
>
> Please find enclosed my code - df1.cpp - as an attachment. I tinkered around with it but since I'm new to the boost libraries as well as a hobby programmer at best I throw in the towel now. Maybe someone more experienced can help me out how to change my code so that it compiles without errors.The error message was:
>
> 1>c:\program files\boost\boost_1_45_0\boost\proto\context\default.hpp(441) : error C2664: 'int DateVerify_Impl::operator ()(const std::string&,wchar_t *) const' : cannot convert parameter 2 from 'wchar_t (*__w64 const )[11]' to 'wchar_t *'
> 1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
>
> Are ALL parameters I pass to the operator() somehow const ? Pfff ..... maybe I should continue after my temperature went down again (flu) - it seems my brains are addled and I cannot figure out anything at the moment. Thanks a lot,
>

Look where you pass &currdate to dverify.
You probably meant &currdate[0].

In Christ,
Steven Watanabe


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net