
Hi!
This one works...
#include
Hi Folks,
Can anyone tell me why this is wrong? My intention is to call A::f() for each A constructed on-the-fly from the elements of v.
Thanks, Rob.
#include
#include #include #include <algorithm> #include <vector> struct A { A( int ); void f( ); };
int main( ) { using namespace boost::lambda;
std::vector< int > v; std::for_each( v.begin( ), v.end( ), bind( & A::f, bind( constructor<A>(), _1 ) ) ); }
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users