Boost C++ Libraries: Ticket #5715: sequencing with comma does not work for boost::phoenix::bind https://svn.boost.org/trac10/ticket/5715 <p> Sample program attached. Correct behaviour, I think, is to call both functions, f() and g(). In new phoenix, only last function g() is called. </p> <p> Using old phoenix from boost/spirit: c++ func2.cc Phoenix version: 2000 f g </p> <p> Using new phoenix: c++ func2.cc -D USE_NEW_PHOENIX ./a.out Phoenix version: 3000 g </p> <p> It seems that comma operator is not overloaded for boost::phoenix::bind (or something like that). </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/5715 Trac 1.4.3 Gennady Proskurin <gpr@…> Tue, 19 Jul 2011 12:31:26 GMT attachment set https://svn.boost.org/trac10/ticket/5715 https://svn.boost.org/trac10/ticket/5715 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">func2.cc</span> </li> </ul> Ticket John Fletcher <J.P.Fletcher@…> Thu, 30 Jan 2014 21:03:29 GMT <link>https://svn.boost.org/trac10/ticket/5715#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5715#comment:1</guid> <description> <p> The solution to this is that an extra header is needed for Phoenix V3. The actual header is #include &lt;boost/proto/operators.hpp&gt; This can be included by including any of the following: #include &lt;boost/phoenix/operator/member.hpp&gt; #include &lt;boost/phoenix/operator.hpp&gt; #include &lt;boost/phoenix.hpp&gt; </p> </description> <category>Ticket</category> </item> <item> <author>John Fletcher <J.P.Fletcher@…></author> <pubDate>Thu, 30 Jan 2014 23:05:49 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/5715#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5715#comment:2</guid> <description> <p> I have countered the need for the extra header by adding #include &lt;boost/proto/operators.hpp&gt; to boost/phoenix/statement/sequence.hpp so that now the headers needed for V2 and V3 are equivalent. I have also added a test bug5715 to check correct operation. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Kohei Takahashi</dc:creator> <pubDate>Mon, 09 May 2016 14:40:24 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/5715#comment:3 https://svn.boost.org/trac10/ticket/5715#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">fixed</span> </li> </ul> <p> Fixed in 1.56. <a class="ext-link" href="http://melpon.org/wandbox/permlink/3QQ2uLVuioB12q08"><span class="icon">​</span>http://melpon.org/wandbox/permlink/3QQ2uLVuioB12q08</a> </p> Ticket