|
Boost : |
From: Douglas Gregor (gregod_at_[hidden])
Date: 2003-05-04 10:07:54
On Sunday 04 May 2003 05:55 am, Thomas Witt wrote:
> Hi,
>
> I have to admit I am unable to remember the template argument ordering
> on std::unary/binary_function each time I use it. The attached patch
> adds the std typedefs for adaptable function objects to
> boost::function_traits. The net effect is that the following declares a
> adaptable function object:
>
> struct my_functor :
> public boost::function_traits<int(double)>
> {
> // ...
> };
I like it.
Doug
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk