mirror of
https://github.com/mpusz/mp-units.git
synced 2025-07-29 18:07:16 +02:00
refactor: op[U]
for quantity
and quantity_point
replaced with .in(U)
Resolves #469
This commit is contained in:
@ -48,7 +48,7 @@ int main()
|
||||
constexpr auto v2 = 70 * mph;
|
||||
constexpr auto v3 = avg_speed(220. * km, 2 * h);
|
||||
constexpr auto v4 = avg_speed(isq::distance(140. * mi), 2 * isq::duration[h]);
|
||||
constexpr auto v5 = v3[m / s];
|
||||
constexpr auto v5 = v3.in(m / s);
|
||||
constexpr auto v6 = value_cast<m / s>(v4);
|
||||
constexpr auto v7 = value_cast<int>(v6);
|
||||
|
||||
|
Reference in New Issue
Block a user