Boost logo

Boost :

From: Hervé Brönnimann (hervebronnimann_at_[hidden])
Date: 2006-12-09 09:39:01


Peter: I tried

#include <boost/bind.hpp>
void draw(int, int) {}

int main()
{
     boost::bind<void>(&draw, _1, _2) (1, 2, 3, 4);
     return 0;
}

and that didn't compile. How did you mean this: "Yes it can"?

--
Hervé Brönnimann
hervebronnimann_at_[hidden]
On Dec 9, 2006, at 9:24 AM, Peter Dimov wrote:
> ali f wrote:
>
>> Boost.Bind can indeed be used to decrease the number of args a
>> function can take, but it can't be used to increase the number of
>> args a function can take.
>
> Yes it can.
> _______________________________________________
> 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