Boost logo

Boost :

From: Hervé Brönnimann (hervebronnimann_at_[hidden])
Date: 2006-12-09 10:15:05


Thanks! In my haste to test, I forgot about the lvalue problem, of
course. Been bitten by this one enough times, though :-)

--
Hervé Brönnimann
hervebronnimann_at_[hidden]
On Dec 9, 2006, at 9:44 AM, Peter Dimov wrote:
> Hervé Brönnimann wrote:
>
>> Indeed, I tried and to my surprise it doesn't work (both boost::bind
>> (&draw, _1, _2)(1,2,3,4) and boost::bind<void>(&draw, _1,
>> _2)(1,2,3,4)).
>
> Calling bind with (1, 2, 3, 4) doesn't work for you because of the  
> rvalues.
> It works with the latest CVS HEAD. You don't even need the & in  
> front of
> draw. boost::bind has been allowing extra arguments since day one.
>
> _______________________________________________
> 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