Boost logo

Boost :

Subject: Re: [boost] [Phoenix] Monomorphic functors don't expose result_type
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2008-09-26 13:10:55


Joel de Guzman wrote:
> Mathias Gaunard wrote:
>> I thought bind was supposed to generate monomorphic functors when used
>> with function pointers, pointers to members, or monomorphic functors.
>> Yet the functors it generates don't expose result_type, but only the
>> result template.
>
> If that's the case, then it's a bug.

A simple example:

int foo() { return 0; }
struct bar { typedef int result_type; int operator()() { return 0; } };

Neither bind(foo) nor bind(bar()) seem to have a result_type.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk