Robert Jones wrote:What version of Boost do you use?
> I believe this is because the lambda version does not publish result_type to its
> resultant functors, since the increased generality of lambda makes this difficult
> or impossible to do.
Boost.Lambda has supported result_of since Boost 1.44.
Your code compiles fine with the trunk version of Boost.