23 Jul
2009
23 Jul
'09
8:26 p.m.
It asserts because a base_unit is just a tag type. Try us::foot_base_unit::unit_type.
Ah, that works as intended - do you think you could make it more explicit
in the documentation how to do this? E.g., as part of "runtime conversions",
...
typedef us_dollar_base_unit::unit_type us_dollar;
typedef euro_base_unit::unit_type euro;
void foo() {
quantity