|
Boost Users : |
Subject: Re: [Boost-users] [phoenix][spirit] catch_all issues in V3
From: llonesmiz (jorge.navalon_at_[hidden])
Date: 2013-12-03 12:07:33
Igor R. wrote
> Hello,
>
>
> The following code doesn't compile (MSVC10, Boost 1.55). If I modify
> "catch_all" line like this:
> query = id[phx::try_[qi::_val = phx::bind(&string2test,
> qi::_1)].catch_all [ qi::_pass = false ], qi::_val = qi::_val ];
> ...it compiles, but doesn't seem to invoke the semantic action in runtime.
> It there a workaround that would both compile and work?
>
> Thanks!
In order to use Boost.Phoenix's comma operator you need to include
"boost/spirit/include/phoenix_statement.hpp" (or maybe
"boost/phoenix/statement/sequence.hpp"). If you don't the default comma
operator is used and it ignores the first argument.
-- View this message in context: http://boost.2283326.n4.nabble.com/phoenix-spirit-catch-all-issues-in-V3-tp4655740p4655741.html Sent from the Boost - Users mailing list archive at Nabble.com.
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