
22 Nov
2004
22 Nov
'04
7:15 p.m.
On Mon, 22 Nov 2004, David Abrahams wrote:
Because often the result type depends on the argument type that is actually passed:
(_1 + 3)(4)
vs.
(_1 + 3)(static_cast
("hello"))
But isn't it the case that any instantiated functor object will have a well-defined result_type? In your examples it seems '(_1 + 3)' would be instantiated to different types. Anyway, I guess a better solution to my particular problem would be for make_transform_iterator to be able to receive a result type and make an adaptable functor out of any UnaryFunction, right? Thanks, Rodrigo