
5 Dec
2006
5 Dec
'06
4:07 p.m.
On 12/5/06, Franck Stauffer <franck@lowcoders.net> wrote:
To make that point clear, it is only required for static type checking of arguments and return types without having to use more than two template parameters. If you want to say it is not desirable for performance, I think deriving from std::unary_function costs nothing (since unary_function's only declare typedef's for return and argument types, there is not impact on calling the functor). The problem is that somehow I want the user to be explicit about those types.
Why not just assume that the functor has typedefs for argument_type and return_type and document the details? --Michael Fawcett