Boost logo

Boost Users :

Subject: Re: [Boost-users] [lambda]
From: Joel de Guzman (joel_at_[hidden])
Date: 2010-02-26 21:44:05


On 2/27/2010 12:57 AM, Steven Watanabe wrote:
> AMDG
>
> Mathias Gaunard wrote:
>> Marcin Zalewski wrote:
>>> I am trying to use lambda's constructor [1] with fusion's fused [2].
>>> Fused requires that the function object passed to it has a following
>>> valid expression:
>>>
>>> boost::result_of< F(T1 ...TN) >::type
>>>
>>> Unfortunately, constructor does not support result_of.
>>
>> Use Phoenix instead of Lambda, and problem solved ;)
>
> Phoenix v2 uses it's own result protocol which is not compatible
> with result_of.

No, Phoenix v2 lambda(actor) function objects supports the
result_of protocol. fusion::function does not, due to backward
compatibility. This backward compatibility will be broken when
we switch to V3, or if possible both will be supported.

Regards,

-- 
Joel de Guzman
http://www.boostpro.com
http://spirit.sf.net
http://www.facebook.com/djowel
Meet me at BoostCon
http://www.boostcon.com/home
http://www.facebook.com/boostcon

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