Boost logo

Boost :

From: Michael Fawcett (michael.fawcett_at_[hidden])
Date: 2006-12-05 11:07:35

On 12/5/06, Franck Stauffer <franck_at_[hidden]> 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

Boost list run by bdawes at, gregod at, cpdaniel at, john at