
3 Sep
2006
3 Sep
'06
11:27 a.m.
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.