refactor: DOWNCAST_MODE renamed to UNITS_DOWNCAST_MODE
This commit is contained in:
1 parent
68bdc82955
commit
d4d23847d8
11 files changed
+34
-34
No files matched your search
@@ -131,7 +131,7 @@ void example()
|
||||
const auto t = si::time<si::second, measurement<double>>(measurement(1.2, 0.1));
|
||||
|
||||
const Speed auto v1 = a * t;
|
||||
#if DOWNCAST_MODE == 0
|
||||
#if UNITS_DOWNCAST_MODE == 0
|
||||
std::cout << a << " * " << t << " = " << v1 << " = " << quantity_cast<si::dim_speed, si::kilometre_per_hour>(v1) << '\n';
|
||||
#else
|
||||
std::cout << a << " * " << t << " = " << v1 << " = " << quantity_cast<si::kilometre_per_hour>(v1) << '\n';
|
||||
|
||||
Reference in new issue
Block a user