I am trying to use bind to generate ptr_vector list of objects from another
vector
#include
AMDG Archie14 wrote:
I am trying to use bind to generate ptr_vector list of objects from another vector
#include
#include boost::bind((&listofb::push_back), lstb, boost::bind((&operator new), b, _1) );
You'll most likely do better using Boost.Lambda. boost::lambda::bind(&listofb::push_back, lstb, boost::lambda::bind(boost::lambda::new_ptr<b>(_1))) In Christ, Steven Watanabe
participants (2)
-
Archie14
-
Steven Watanabe