
30 Mar
2008
30 Mar
'08
10:18 p.m.
Giovanni Piero Deretta wrote:
OTOH, refactoring a lambda on a separate function object is a pain if you have to figure out the result of a complex composition of polymorphic function objects (result_of helps only to a point). For example, what is the result of:
filter_view(reverse_view(mapped_view(range, op)), filter)
(I often find much more complex expressions in my code).
BTW, how about this: http://tinyurl.com/23jdk6 return_of is a simple wrapper around result_of. A problem is that a function type is decayed to function pointer. Regards, -- Shunsuke Sogame