Boost C++ Libraries: Ticket #6751: phoenix v3 yields compilation failure in spirit https://svn.boost.org/trac10/ticket/6751 <p> Here is a simple code </p> <pre class="wiki">//#define BOOST_SPIRIT_USE_PHOENIX_V3 1 #include &lt;iostream&gt; #include &lt;vector&gt; #include &lt;algorithm&gt; #include &lt;iterator&gt; #include &lt;boost/spirit/include/qi.hpp&gt; #include &lt;boost/spirit/include/phoenix_core.hpp&gt; #include &lt;boost/spirit/include/phoenix_operator.hpp&gt; #include &lt;boost/spirit/include/phoenix_stl.hpp&gt; #include &lt;boost/spirit/include/phoenix_statement.hpp&gt; namespace spirit = boost::spirit ; namespace qi = boost::spirit::qi ; namespace ascii = boost::spirit::ascii ; namespace phoenix = boost::phoenix ; using qi::int_ ; using qi::_1 ; using phoenix::push_back ; using phoenix::ref ; using phoenix::if_ ; int main (int argc, char* argv[]) { std::string line ; std::getline (std::cin, line) ; std::vector&lt;int&gt; v ; bool r = spirit::qi::phrase_parse (line.begin (), line.end (), int_ [if_(_1 % 2 == 0)[push_back (ref(v), _1)]] % ',', ascii::space) ; if (r) { std::cout &lt;&lt; "vector: " ; std::copy (v.begin(), v.end(), std::ostream_iterator&lt;int&gt; (std::cout, ", ")) ; std::cout &lt;&lt; std::endl ; } return 0 ; } </pre><p> Uncommenting the first line will trigger compilation errors. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/6751 Trac 1.4.3 Joel de Guzman Sat, 31 Mar 2012 02:43:11 GMT owner changed https://svn.boost.org/trac10/ticket/6751#comment:1 https://svn.boost.org/trac10/ticket/6751#comment:1 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Joel de Guzman</span> to <span class="trac-author">Thomas Heller</span> </li> </ul> Ticket Nikita Kniazev <nok.raven@…> Tue, 05 Dec 2017 19:03:33 GMT <link>https://svn.boost.org/trac10/ticket/6751#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6751#comment:2</guid> <description> <p> The problem here that you are using <code>qi::_1</code> while you have to <code>phoenix::placeholders::_1</code>. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Joel de Guzman</dc:creator> <pubDate>Wed, 13 Dec 2017 23:08:17 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/6751#comment:3 https://svn.boost.org/trac10/ticket/6751#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">invalid</span> </li> </ul> Ticket