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
+1 -1
View File
@@ -46,7 +46,7 @@ int main()
std::cout << "conversion factor in mp-units...\n\n";
constexpr auto lengthA = 2.0 * m;
constexpr auto lengthB = lengthA[mm];
constexpr auto lengthB = lengthA.in(mm);
std::cout << MP_UNITS_STD_FMT::format("lengthA( {} ) and lengthB( {} )\n", lengthA, lengthB)
<< "represent the same length in different units.\n\n";