|
Boost : |
From: Dirk Gerrits (dirkg_at_[hidden])
Date: 2002-05-12 06:52:03
----- Original Message -----
From: "Douglas Gregor" <gregod_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Saturday, 11 May, 2002 17:15
Subject: Re: [boost] Overloading a function taking a boost::function
<cut>
> Of course, this style only works for free and member functions. We'd need
> something like ArityTraits to handle arbitrary function objects. That's
the
> reason that make_function never really made it: we don't have a good set
of
> function object traits to work with.
>
> If we _did_ have a working set of function traits, it would be possible to
> make Boost.Function objects implicitly constructed only from function
objects
> that are callable by the Boost.Function object.
This has nothing to do with my original problem, but I'm curious what this
Boost.Function constructor would look like if there was a working
boost::arity_traits class. I'm relatively new to generic programming using
C++ templates and I'd like to learn more.
Thanks in advance for teaching me a new trick. :)
Dirk Gerrits
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk