
-----Original Message----- From: Eric Lemings Sent: Monday, August 21, 2006 10:58 AM To: 'boost@lists.boost.org' Subject: RE: [boost] Boost Units library preview
-----Original Message----- From: boost-bounces@lists.boost.org [mailto:boost-bounces@lists.boost.org] On Behalf Of Matthias Troyer Sent: Sunday, August 20, 2006 6:29 AM To: boost@lists.boost.org Subject: Re: [boost] Boost Units library preview
Wait, if I multiply quantities (which have units) then also
will have a unit. E.g. if I divide 10 meters by 2 seconds
... the result then I get 5
m/s . I wouldn't call that anonymous since I know the unit: m/s
This brings up a good question. Say you have two objects:
meters m = 1; feet f = 2;
What is the type (or unit) of the following expression?
m * f;
Doh! This should be addition, not multiplication. m + f; Eric.