
28 Mar
2007
28 Mar
'07
7:07 p.m.
AMDG Eric Lemings <lemings <at> roguewave.com> 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. template<> base_unit_converter<currency, yen, euro> { typedef ... type; static void value() { return(lookup_currency_conversion("yen", "euro")); } }; In Christ, Steven Watanabe