You are performing a functional composition. Therefore you must make up your binds. You need to ProcessBar(ConvertFooToBar(...)). Therefore you must do it.
boost::function<void (const Foo&)> f =
boost::bind(&ProcessBar, boost::bind(ConvertFooToBar, _1));
source
share