23 Feb
2011
23 Feb
'11
7:45 a.m.
Hello, Currently (boost 1.46) boost::transform_iterator requires that the unary functor 'f' passed to it use the 'result_of' protocol to declare its return type (that is, it must either have a nested 'result_type' typedef, or in the case of polymorphic functions, a nested 'result' metafunction that computes the return type given the parameter type). Would it be a good idea to modify the requirements so that if the boost library detects C++0x support, it uses 'decltype' to determine the return type of the functor, so that the functor does not have to use the 'result_of' protocol? I would be happy to contribute a patch implementing this. Regards, Nate.