mirror of
https://github.com/mpusz/mp-units.git
synced 2025-07-30 18:37:15 +02:00
refactor: op[U]
for quantity
and quantity_point
replaced with .in(U)
Resolves #469
This commit is contained in:
@ -135,7 +135,7 @@ void example()
|
||||
const auto t = measurement{1.2, 0.1} * s;
|
||||
|
||||
const QuantityOf<isq::velocity> auto v = a * t;
|
||||
std::cout << a << " * " << t << " = " << v << " = " << v[km / h] << '\n';
|
||||
std::cout << a << " * " << t << " = " << v << " = " << v.in(km / h) << '\n';
|
||||
|
||||
const auto length = measurement{123., 1.} * m;
|
||||
std::cout << "10 * " << length << " = " << 10 * length << '\n';
|
||||
|
Reference in New Issue
Block a user