mirror of
https://github.com/mpusz/mp-units.git
synced 2025-07-29 18:07:16 +02:00
refactor: DOWNCAST_MODE
renamed to UNITS_DOWNCAST_MODE
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user