Boost logo

Boost :

Subject: [boost] [phoenix2][asio] phoenix bind does not work with asio
From: Carlos Rafael Giani (e0325834_at_[hidden])
Date: 2009-08-02 18:06:15


Hi,

I am trying to replace all occurrences of boost.bind with phoenix bind,
since boost.bind is unusable due to the placeholders not residing in a
named namespace.

However, asio always fails to compile when used with phoenix bind.
The error message always goes like
"boost/asio/detail/bind_handler.hpp:130: error: no matching function for
call to ‘invoke(const
boost::asio::detail::binder2<boost::phoenix::actor<boost::phoenix::composite<boost::phoenix::detail::function_eval<4>,
  ....."

I suspect this is because phoenix bind creates an actor, not a boost
function object. This problem is present in boost trunk as well.

Does anybody have an idea how to solve this?


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk