
13 May
2004
13 May
'04
8:37 p.m.
On May 13, 2004, at 3:32 PM, Neal D. Becker wrote:
Any reason lambda functions can't meet requirements for std::unary_function, for example? Specifically, it seems result_type is not defined.
For example boost::constant(0) doesn't have result_type, so can't be used where a std::unary_function is needed.
In general the result_type is not known until the parameter types of the lambda_functor are known. So for consistency (or laziness), result_type is not provided for any lambda functor. Jaakko