mini-c example does not compile (msvc2015, win32, boost 1.63)
Frank Hein <[email protected]>
| Newsgroups | gmane.comp.parsers.spirit.general |
|---|---|
| Message-ID | <OF78F31459.434AF633-ONC12580D9.00124C64-C12580D9.001345B7@maxence.de> |
Hello,
compiling the qi mini_c example I get the error:
c:\_lib\boost\boost\phoenix\function\detail\cpp03\preprocessed\function_operator_10.hpp(57):
error C2664:
'boost::phoenix::actor<boost::proto::exprns_::basic_expr<Tag,Args,4>>
boost::phoenix::expr_ext<boost::phoenix::actor,Tag,H,char
*,boost::phoenix::actor<boost::spirit::argument<3>>
,boost::phoenix::actor<boost::spirit::argument<2>>>::make(const
client::error_handler<Iterator> &
,char *const ,const
boost::phoenix::actor<boost::spirit::argument<3>> &
,const boost::phoenix::actor<boost::spirit::argument<2>>
&)'
: cannot convert argument 2 from 'const char [18]' to 'char *const '
Origin of this error are the error handling lines. Here the one from
expression_def.hpp
///////////////////////////////////////////////////////////////////////
// Error handling: on error in expr, call error_handler.
on_error<fail>(expr,
error_handler_function(error_handler)(
"Error! Expecting ", _4, _3));
Any help to have that fixed would be highly appreciated.
I implemented error_handling in several parser copying from mini_c.
Those do not compile any longer, too.
Regards, Frank
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot