$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Jaakko Jarvi (jajarvi_at_[hidden])
Date: 2004-05-13 15:37:10
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