Boost logo

Boost :

From: Steven Watanabe (steven_at_[hidden])
Date: 2007-04-03 20:41:13


AMDG

K. R. Walker <krwalker <at> stellarscience.com> writes:

> <snip>
>
> We have defined our own custom units and found their use to be identical
> to those provided by the library. We would like to see quantities
> defined using derived SI units printed using the derived units instead
> of the base units (W/m^2 instead of Kg/s^3).

Unfortunately there is no easy way to do this. (should it be
joule/meter^2 second, newton/meter second, or pascal meter/second?)

H'm.

cout << io::power/pow<2>(io::meter) << x; // W/m^2
cout << io::mass/pow<3>(io::second) << x; // Kg/s^3

???

> <snip>
>
> Yes. We would very much like to see this library become part of Boost.
>
> In the unfortunate event it were not accepted, we intend to continue to
> use the library.
>
> Thank you,
>

Many Thanks.

In Christ,
Steven Watanabe


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