mirror of
https://github.com/mpusz/mp-units.git
synced 2025-07-29 18:07:16 +02:00
refactor!: require explicit number for references
Addresses: - https://github.com/mpusz/units/pull/261#discussion_r596651065 - https://github.com/mpusz/units/pull/261#discussion_r596664550 - https://github.com/mpusz/units/pull/261#discussion_r597132294
This commit is contained in:
committed by
Mateusz Pusz
parent
6d9abe97e5
commit
0b87e7c99c
@ -38,7 +38,7 @@ int main()
|
||||
using namespace units::isq::si::literals;
|
||||
using namespace units::isq::si::references;
|
||||
|
||||
constexpr Speed auto v1 = 110 * km / h;
|
||||
constexpr Speed auto v1 = 110 * (km / h);
|
||||
constexpr Speed auto v2 = avg_speed(220_q_km, 2_q_h);
|
||||
constexpr Speed auto v3 = avg_speed(si::length<si::international::mile>(140), si::time<si::hour>(2));
|
||||
#if UNITS_DOWNCAST_MODE == 0
|
||||
|
Reference in New Issue
Block a user