
9 Dec
2006
9 Dec
'06
2:44 p.m.
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.