mirror of
https://github.com/mpusz/mp-units.git
synced 2025-07-31 19:04:27 +02:00
fix(example): fixing compilation after the previous commit
This commit is contained in:
@@ -99,7 +99,7 @@ int main()
|
|||||||
{
|
{
|
||||||
using namespace unit_symbols;
|
using namespace unit_symbols;
|
||||||
|
|
||||||
quantity_point price_usd = zero<currency> + 100 * USD;
|
quantity_point price_usd = zero + 100 * USD;
|
||||||
quantity_point price_euro = exchange_to<euro>(price_usd);
|
quantity_point price_euro = exchange_to<euro>(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";
|
||||||
|
Reference in New Issue
Block a user