Boost logo

Boost :

From: Ben Strasser (strasser.ben_at_[hidden])
Date: 2006-09-03 07:27:00


Eric Lemings <lemings <at> roguewave.com> writes:

>
> > unit<quantity<length, 1, mass, 1> >
> > unit<quantity<mass, 1, length, 1> >
>
> Why do you use the word 'unit' in these examples? I don't see
> any units in there. A unit is a standard of measure. A meter
> is a unit. Mass and length are dimensions.
The first template parameter describes the quantity that is measured and the
second parameter controls how many of that quantity. If the second one is
omitted then it is assumed that there is only one way (used) to measure that
quantity.


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