Boost logo

Boost Users :

From: Robert Dailey (rcdailey_at_[hidden])
Date: 2008-02-06 12:41:36


On Feb 6, 2008 11:18 AM, Rene Rivera <grafikrobot_at_[hidden]> wrote:
>
> You could use the new function_traits library, but that's not in a
> release yet. Or recreate the type "manually" using the component
> typedefs in function <http://boost.org/doc/html/boost/functionN.html>.

I just created my own quick little class for this:

    template< typename t_fun >
    class FunctionHolder
    {
    public:
        typedef t_fun type;
    };

I don't understand why boost::function can't just have the following:

*typedef Signature signature_type;*

It would be very useful!



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net