22 Sep
2008
22 Sep
'08
1:58 p.m.
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.