23 Sep
2008
23 Sep
'08
1:42 p.m.
Hi christoph, Did you try providing a result_type typedef in your function object as shown below? Christoph wrote:
Do function_traits work with functors?
I tried with
struct XYZ {
typedef bool result_type;
bool operator() (int x) const { return x+2; } };
Jeff Flinn