Boost C++ Libraries: Ticket #5558: Phoenix bind doesn't support bind<type> construct https://svn.boost.org/trac10/ticket/5558 <p> boost::bind uses bind&lt;type&gt; in situations where it cannot determine the return type. This is useful for situations where you are binding to a method with a variable argument list such as printf. </p> <p> I'm not so much concerned with the bind&lt;type&gt; construct as I'm unsure how to bind to functions such as printf. Is there a syntax for this when utilizing Phoenix bind that I have missed? </p> <p> Using boost::bind -- </p> <blockquote> <p> boost::bind&lt;int&gt;( &amp;printf, "%d ", _1 )(42); </p> </blockquote> <p> Using phoenix::bind -- </p> <blockquote> <p> phx::bind( &amp;printf, "%d ", arg1 )(42); </p> </blockquote> <p> results in compilation error. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/5558 Trac 1.4.3 Thomas Heller Wed, 29 Jun 2011 16:16:31 GMT status, severity, milestone changed https://svn.boost.org/trac10/ticket/5558#comment:1 https://svn.boost.org/trac10/ticket/5558#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> <li><strong>severity</strong> <span class="trac-field-old">Problem</span> → <span class="trac-field-new">Showstopper</span> </li> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.48.0</span> </li> </ul> Ticket Thomas Heller Sun, 09 Oct 2011 02:29:48 GMT milestone changed https://svn.boost.org/trac10/ticket/5558#comment:2 https://svn.boost.org/trac10/ticket/5558#comment:2 <ul> <li><strong>milestone</strong> <span class="trac-field-old">Boost 1.48.0</span> → <span class="trac-field-new">To Be Determined</span> </li> </ul> Ticket viboes Wed, 12 Jun 2013 21:52:44 GMT <link>https://svn.boost.org/trac10/ticket/5558#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5558#comment:3</guid> <description> <p> Has this been fixed? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Kohei Takahashi</dc:creator> <pubDate>Mon, 09 May 2016 14:07:41 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/5558#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5558#comment:4</guid> <description> <p> It seems that depends on the behaviour of boost::result_of. i.e. C++11 (decltype based) works fine <a class="ext-link" href="http://melpon.org/wandbox/permlink/z0l0df65Ivlgq2kp"><span class="icon">​</span>http://melpon.org/wandbox/permlink/z0l0df65Ivlgq2kp</a>, but C++03 (TR1 based) doesn't <a class="ext-link" href="http://melpon.org/wandbox/permlink/UUbaHC2mEeykrIBE"><span class="icon">​</span>http://melpon.org/wandbox/permlink/UUbaHC2mEeykrIBE</a>. </p> </description> <category>Ticket</category> </item> </channel> </rss>