Boost logo

Boost :

From: Jan Langer (jan_at_[hidden])
Date: 2003-10-16 17:07:50

Hugo Duncan wrote:
>>> Agreed, but how do you use a unit such as BTU which is not defined
>>> in terms of units of fundamental dimensions?
>> how about:
>> quantity <double, energy> const btu = 1055 * joules;
> energy is not a fundamental dimension.
> joules = kg·m2/s2 [ M L^2 T^-2 ]

yes of course. but why shouldn't it be used as the dimension of a quantity?

something like
        typedef list_c <int, 1, 2, -2>::type energy;
would be defined somewhere in the library.

jan langer ... jan_at_[hidden]
"pi ist genau drei"

Boost list run by bdawes at, gregod at, cpdaniel at, john at