
18 Jan
2007
18 Jan
'07
9:49 p.m.
I've just posted mcs::units v0.5.5 - changes include 1) inverted quantity template parameter order and double precision default value_type, allowing this syntax: quantity<SI::length> q1(1.0*SI::metre); // added metre, etc... for our Commonwealth friends 2) implemented implicit value_type conversion (for value_types that are themselves implicitly convertible) 3) implemented quantity_cast for three cases (see unit_example_5.cpp) : a) construction of quantities from raw value types b) conversion of value_types c) conversion of unit systems I hope to have an example of absolute_measure/difference_measure soon... Matthias