mirror of
https://github.com/mpusz/mp-units.git
synced 2025-12-24 07:38:08 +01:00
refactor: First examples refactored to a new quantity creation syntax
This commit is contained in:
@@ -43,7 +43,7 @@ int main()
|
||||
|
||||
std::cout << "conversion factor in mp-units...\n\n";
|
||||
|
||||
constexpr auto lengthA = 2.0 * isq::length[si::metre];
|
||||
constexpr auto lengthA = isq::length(2.0, si::metre);
|
||||
constexpr auto lengthB = lengthA[si::milli<si::metre>];
|
||||
|
||||
std::cout << STD_FMT::format("lengthA( {} ) and lengthB( {} )\n", lengthA, lengthB)
|
||||
|
||||
Reference in New Issue
Block a user