Boost logo

Boost :

From: Matthias Schabel (boost_at_[hidden])
Date: 2007-03-31 15:04:23


>>> second(1)' is much uglier than '9.8 * metres / (second*second)'
>>> for no
>>> apparent gain.
>>
>> If '9.8 * metres / (second*second)' is a valid expression, then
>> 'metres/(second*second)'
>> must also be a valid expression. What is the result of the latter?
>>
> Is it a legal expression? It's plausible that it doesn't know the
> desired representation type (double, float, etc).

meters/(second*second) == unit<acceleration_type,SI::system>()

Matthias


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