From: Nico Massi (desertswat_at_[hidden])
Date: 2004-06-26 13:06:29
On Sat, 26 Jun 2004 13:44:54 -0400, David Abrahams
> "Nico Massi" <desertswat_at_[hidden]> writes:
>> Is it possible to store a boost::bind?
> No; boost::bind is a function template.
>> boost::bind<int> x( f, _1, _2 );
>> int i = x( 3, 4 );
>> I get errors if i want to declare a variable of type boost::bind.
>> The point is:
>> I want to have an object that gets a boost::bind, stores it and
>> executes it with
>> the correct values to the time i want.
>> How can i do this?
> Maybe you want
> boost::function<int(int,int)> x = boost::bind(f,_1,_2);
Better than nothing,
but i need a variable number of arguments, if it is possible.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk