Boost logo

Boost :

From: Steven Watanabe (steven_at_[hidden])
Date: 2007-03-28 15:07:13


Eric Lemings <lemings <at>> writes:

> Speaking of currency however, that is another completely different
> problem as conversions between units of currency are dynamic rather
> than fixed like all units of physical measurement. Conversions for
> such units can only be done at runtime.
> Eric.

As a matter of fact, such conversions
work with Units since we don't do anything
fancy like caching the total conversion factor.

base_unit_converter<currency, yen, euro>
    typedef ... type;
    static void value()
        return(lookup_currency_conversion("yen", "euro"));

In Christ,
Steven Watanabe

Boost list run by bdawes at, gregod at, cpdaniel at, john at