Boost logo

Boost Users :

Subject: Re: [Boost-users] [units] easier "power" of units generation
From: alfC (alfredo.correa_at_[hidden])
Date: 2010-05-07 04:47:58


On May 6, 7:48 am, Steven Watanabe <watanab..._at_[hidden]> wrote:
> The metafunction is power_typeof_helper.
> quantity<power_typeof_helper<angstrom_unit, static_rational<3> >::type> V;

Thank you, at least it is more explicit in it meaning.

This also seems to work for some magical reason (your magic probably):

power_typeof_helper<quantity<angstrom_unit>, static_rational<3>
>::type V2;

Thank you,
Alfredo


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