
20 Apr
2011
20 Apr
'11
8:12 a.m.
On Apr 19, 11:58 pm, alfC
makes sense. Following your steps and the code base in boost/phoenix/fusion/at.hpp and boost/proto/functional/fusion/at.hpp I was able to add the pow<N>(...) expression (which works for boost.units, and doubles), see below.
BTW, using (note the actor<...> pattern (see below) nicely lifts an
ambiguity between boost::units::pow and the newly created
boost::phoenix::pow.
I hope the boost.units maintainers take now and include an adaptor
like this to boost/units/phoenix.hpp
template ::make(mpl::int_<N>(), arg);
} Thanks,
Alfredo