Subject: [Boost-bugs] [Boost C++ Libraries] #5558: Phoenix bind doesn't support bind<type> construct
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-05-23 15:37:50
#5558: Phoenix bind doesn't support bind<type> construct
------------------------------+---------------------------------------------
Reporter: mjcaisse | Owner: theller
Type: Bugs | Status: new
Milestone: To Be Determined | Component: phoenix
Version: Boost 1.46.1 | Severity: Problem
Keywords: |
------------------------------+---------------------------------------------
boost::bind uses bind<type> 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.
I'm not so much concerned with the bind<type> 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?
Using boost::bind --
boost::bind<int>( &printf, "%d ", _1 )(42);
Using phoenix::bind --
phx::bind( &printf, "%d ", arg1 )(42);
results in compilation error.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/5558> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:06 UTC