Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2008-07-02 14:10:06


Eric Niebler wrote:
> Joel de Guzman wrote:
>> David Abrahams wrote:
>>> Joel de Guzman wrote:
>>>
>>>> Yep. Another feature that makes backward compatibility imperfect.
>>>> There's no sense in supporting that feature when Phoenix uses
>>>> result_of and BOOST_TYPEOF.
>>>
>>> Can you explain how Phoenix uses these facilities together?
>>
>> You should ask Eric. He did that part when he ported it to proto.
>> Phoenix used to have its own return type deduction which was
>> a very primitive rendition of BOOST_TYPEOF using the sizeof
>> trick I hacked a long time ago. Eric switched to result_of
>> and BOOST_TYPEOF.
>
> The Phoenix/Proto port in (Phoenix v3) uses BOOST_TYPEOF to deduce the
> the type of expressions involving operators, with the exception of the
> function call operator. For the function call operator, Phoenix v3 uses
> result_of to calculate the return type.

Interesting. Kinda makes sense, but could you explain the rationale anyway?

-- 
Dave Abrahams
BoostPro Computing
http://www.boostpro.com

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