$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Steven Watanabe (steven_at_[hidden])
Date: 2007-03-28 15:07:13
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