Boost logo

Boost :

From: Marc Jacobs (marcja_at_[hidden])
Date: 2003-03-04 09:50:51


Thanks. That worked.

"Douglas Gregor" <gregod_at_[hidden]> wrote in message
news:200303032023.40882.gregod_at_cs.rpi.edu...
> 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
>


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