
9 Dec
2006
9 Dec
'06
3:15 p.m.
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@mac.com 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