Boost logo

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 ];
> 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:
Sent from the Boost - Users mailing list archive at

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at