
4 Jun
2010
4 Jun
'10
2:31 a.m.
On Jun 3, 7:16 pm, Steven Watanabe
Joel de Guzman wrote:
When you do a*a with quantitysi::length, what is the expected return type?
quantitysi::area rigth.
and in case you wonder, Boost.Units has a bunch of template functions
to obtain
the result type of arithmetic operations. For example
boost::units::multiply_typeof_helper
(looks like a phoenix-2 limitation. hopefully, this will all get sorted out with phoenix-3).
so, there is no hope with phoenix-2? can't we do something temporary like boost/units/lambda.hpp to help phoenix-2 to deduce the type? is it possible? Thank you, Alfredo