refactor: DOWNCAST_MODE renamed to UNITS_DOWNCAST_MODE

This commit is contained in:
Mateusz Pusz
2020-09-13 18:45:46 +02:00
parent 68bdc82955
commit d4d23847d8
11 changed files with 34 additions and 34 deletions

View File

@ -37,7 +37,7 @@ int main()
using namespace units::physical::si::literals;
Speed auto v1 = avg_speed(220_q_km, 2_q_h);
Speed auto v2 = avg_speed(si::length<si::international::mile>(140), si::time<si::hour>(2));
#if DOWNCAST_MODE == 0
#if UNITS_DOWNCAST_MODE == 0
Speed auto v3 = quantity_cast<si::dim_speed, si::metre_per_second>(v2);
#else
Speed auto v3 = quantity_cast<si::metre_per_second>(v2);