refactor: op[U] for quantity and quantity_point replaced with .in(U)
Resolves #469
This commit is contained in:
1 parent
d8f646a1e4
commit
ae92b49775
24 files changed
+113
-113
No files matched your search
@@ -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