Boost logo

Boost Users :

Subject: Re: [Boost-users] functors with function_traits
From: Christoph Duelli (duelli_at_[hidden])
Date: 2008-09-22 09:58:44


Steven Watanabe wrote:

> AMDG
>
> Christoph wrote:
>> Do function_traits work with functors?
>>
>> <snip>
>>
>
> Err, what do you want to happen for an overloaded or templated
> function object?
Indeed, I was thinking of the simple case of non-overloaded, non-templated
functors.

> typedef BOOST_TYPEOF(FUNCTION::operator()) mf_type;
>
> Then mf_type will be (e.g.) int (XYZ::*)(int) const, which can be
> broken down by the Function Types library.
I'll look into that.
Maybe I can create a Boost.Function from the functor and use some of
Boost.Function's typedefs?

Thank you.


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