Boost logo

Boost :

From: David Abrahams (abrahams_at_[hidden])
Date: 2001-04-09 22:32:43


----- Original Message -----
From: "Doug Gregor" <gregod_at_[hidden]>
> >
> > Could be there is speicalized versions of any_function class which
> > take a function pointer type template argument and deduce other types
> > from it ?
>
> It is possible, though I don't know that it could be done portably because
it
> would (likely) require either partial specialization (not always
available)
> or a working is_function (I don't believe is_function works on all
platforms).

FWIW, the boost.python library does something very much like this, and works
with MSVC (no partial specialization).

-Dave


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk