Boost logo

Boost Users :

Subject: Re: [Boost-users] [phoenix][units] make boost.phoenix play well with boost.units
From: Joel de Guzman (joel_at_[hidden])
Date: 2010-06-03 22:32:27


On 6/4/10 10:16 AM, Steven Watanabe wrote:
> AMDG
>
> Joel de Guzman wrote:
>> When you do a*a with quantity<si::length>, what is the expected
>> return type?
>
> quantity<si::area>
>
>> (looks like a phoenix-2 limitation. hopefully, this will all get sorted
>> out with phoenix-3).

Ok, phoenix-2's type deduction can't deduce that alright. Sorry.
Best you can do is specialize boost::phoenix::result_of_xxx
for your types.

Regards,

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

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