$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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