Boost logo

Boost :

From: Ben Strasser (strasser.ben_at_[hidden])
Date: 2006-08-29 15:17:25


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.


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