diff --git a/example/currency.cpp b/example/currency.cpp index 6f280659..0eb46040 100644 --- a/example/currency.cpp +++ b/example/currency.cpp @@ -90,11 +90,11 @@ template #endif -template auto To, ReferenceOf auto From, typename Rep> -quantity exchange_to(quantity q) -{ - return static_cast(exchange_rate() * q.numerical_value()) * To; -} +// template auto To, ReferenceOf auto From, typename Rep> +// quantity exchange_to(quantity q) +// { +// return static_cast(exchange_rate() * q.numerical_value()) * To; +// } template auto To, ReferenceOf auto From, auto PO, typename Rep> quantity_point exchange_to(quantity_point q) @@ -107,8 +107,8 @@ int main() { using namespace unit_symbols; - const quantity_point price_usd{100 * USD}; - const quantity_point price_euro = exchange_to(price_usd); + const mp_units::quantity_point price_usd{100 * USD}; + const mp_units::quantity_point price_euro = exchange_to(price_usd); std::cout << price_usd.quantity_from_zero() << " -> " << price_euro.quantity_from_zero() << "\n"; // std::cout << price_usd.quantity_from_zero() + price_euro.quantity_from_zero() << "\n"; // does diff --git a/test/static/quantity_point_test.cpp b/test/static/quantity_point_test.cpp index 64254d3e..5bfa7055 100644 --- a/test/static/quantity_point_test.cpp +++ b/test/static/quantity_point_test.cpp @@ -926,13 +926,12 @@ static_assert(quantity_point{sys_seconds{24h}}.quantity_spec == kind_of