Boost logo

Boost :

From: Jonathan Turkanis (technews_at_[hidden])
Date: 2004-09-17 15:32:56

"Tobias Schwinger" <tschwinger_at_[hidden]> wrote in message
> Thorsten Ottosen wrote:
> > Hi,
> >
> > What is the reason that function_traits is not defined for function objects?
> > Is it impossible?
> >
> Hi Thorsten,
> Some weeks ago I uploaded a first proposal for an extension to the Type
> Traits library capable of handling (all kinds of) function pointers.
> These could be applied to a (pointer to) the operator() member of a
> functor type, if it's not a member template (as Doug mentioned earlier).
> So it does work for for types of the STL functor templates or alike.

> In case you are using it, playing with it or just looking at it, any
> comments are welcome !

I'm interested, and will try to look at it eventually, but am too busy now. Just
a quick question: does your proposal use template template parameters in an
essential way, or was that just part of the snipped example? If so, it will
likely impede mpl interoperability.


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