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?
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 acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk