Boost logo

Boost Users :

Subject: Re: [Boost-users] functors with function_traits
From: Jeff Flinn (TriumphSprint2000_at_[hidden])
Date: 2008-09-23 09:42:05


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


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