refactor: op[U] for quantity and quantity_point replaced with .in(U)

Resolves #469
This commit is contained in:
Mateusz Pusz
2023-08-23 16:46:15 +02:00
parent d8f646a1e4
commit ae92b49775
24 changed files with 113 additions and 113 deletions
+3 -3
View File
@@ -62,7 +62,7 @@ int main()
constexpr auto v2 = 70 * mph;
constexpr auto v3 = avg_speed(220. * isq::distance[km], 2 * h);
constexpr auto v4 = avg_speed(isq::distance(140. * mi), 2 * 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);
@@ -76,8 +76,8 @@ int main()
}
```
!!! example "[Try it on Compiler Explorer](https://godbolt.org/z/zPnerKqzh)"
!!! example "[Try it on Compiler Explorer](https://godbolt.org/z/E4rvPGa3n)"
!!! note
You can find more code examples in the Examples chapter.
You can find more code examples in the [Examples](../users_guide/examples/tags_index.md) chapter.