From: Andy Little (andy_at_[hidden])
Date: 2003-11-19 22:41:28
"Andy Little" <andy_at_[hidden]> wrote in message
> "Matthias Schabel" <boost_at_[hidden]> wrote in message
> > Hmmm...I would argue that the dimensionless result of a unit
> > computation is
> > fundamentally different than a normal POD value - for example, units of
> > angular
> > measure are technically dimensionless, but there is clear value in
> > keeping track of
> > them.
> The programmer imposes a type on the entity when it is ouput.
> A physical quantity consists in a concise amount of information. Keep it
> pq_length<float>::m length1(1), length2(1);
> pq_angle<float>::radians alpha = length1/length2;
> pq_angle<float>::degrees beta = length1/length2;
Hoisted on my own rope !
It 's probably not possible to convert to degrees in that example without a
You win on this one ... C'est la vie :-)
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk