[BOOST::XPRESSIVE] Trouble with functor

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, Norbert -- NEU: FreePhone - kostenlos mobil telefonieren und surfen! Jetzt informieren: http://www.gmx.net/de/go/freephone

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

Thank you very much Steven! Of course this fixes the error - I guess I shouldn't program as long as I am sick ( would reduce making embarassing mistakes like this one ;-) ) best regards, Norbert In article <4D4C30DC.7050406@providere-consulting.com>, you say...
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
participants (2)
-
Norbert Hauck
-
Steven Watanabe