Boost logo

Boost :

Subject: Re: [boost] [phoenix] Result type & compatibility with result_of
From: Joel de Guzman (joel_at_[hidden])
Date: 2010-06-06 10:47:42


On 6/6/10 9:29 PM, Andrey Semashev wrote:
> Hi,
>
> Is there a rationale of Phoenix2 being not compatible with STL functors

Phoenix functions are polymorphic.

> and result_of?

Phoenix predates result_of.

I'm trying to bind an STL functor and it fails to compile.

Check out libs/spirit/phoenix/test/bind/bind_function_object_tests.cpp
Phoenix3 will support result_of for binding function objects.

Regards,

-- 
Joel de Guzman
http://www.boostpro.com
http://spirit.sf.net

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