mirror of
https://github.com/mpusz/mp-units.git
synced 2025-07-29 18:07:16 +02:00
refactor: All the macros refactored to have MP_UNITS_
prefix
This commit is contained in:
@ -139,6 +139,8 @@ void example()
|
||||
|
||||
const auto length = measurement{123., 1.} * m;
|
||||
std::cout << "10 * " << length << " = " << 10 * length << '\n';
|
||||
|
||||
std::cout << "Mass of the Sun: " << measurement{19884, 2} * (mag_power<10, 26> * kg) << '\n';
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
Reference in New Issue
Block a user