On Monday 03 March 2003 05:03 pm, Marc Jacobs wrote: > bind( &X::f, &x, _1 )( 6 ); // error!
You can't pass rvalues to boost::bind function objects, because of the forwarding problem in C++. If you use this it should work: int i = 6; bind( &X::f, &x, _1 )( i ); There's a good description of the forwarding problem here: http://anubis.dkuug.dk/jtc1/sc22/wg21/docs/papers/2002/n1385.htm Doug _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost