22 Nov
2004
22 Nov
'04
3:26 p.m.
Rodrigo de Salvo Braz
Hello,
I am trying to use transform_iterator with a lambda functor, but the compiler complains that the lambda functor does not contain a type called 'result_type', which the transform_iterator requires.
I would have expected lambda functors to have this type. Any ideas on why it doesn't?
Because often the result type depends on the argument type that is
actually passed:
(_1 + 3)(4)
vs.
(_1 + 3)(static_cast