
29 Aug
2006
29 Aug
'06
7:17 p.m.
Janek Kozicki <janek_listy <at> wp.pl> writes:
maybe even something like this:
typedef unit<length, "m" , 10, 0, 1 > meter; typedef unit<length, "in", 10,-2, 2.54 > inch;
additional arguments are: power base, power exponent, conversion mutiplier, so we have:
This is actually already implemented. See unit_converter.cpp for a usage example. The only only part that is missing is the automatique I/O.