refactor: absolute renamed to point

Resolves #645
This commit is contained in:
Mateusz Pusz
2024-11-24 14:19:16 +01:00
parent 36b1707da0
commit b77aa52355
8 changed files with 27 additions and 24 deletions

View File

@@ -261,7 +261,7 @@ This introduces an additional type-safety.
using namespace mp_units::si::unit_symbols;
using namespace mp_units::usc::unit_symbols;
quantity_point temp = absolute<deg_C>(20.);
quantity_point temp = point<deg_C>(20.);
std::println("Temperature: {} ({})",
temp.quantity_from_zero(),
temp.in(deg_F).quantity_from_zero());
@@ -282,7 +282,7 @@ This introduces an additional type-safety.
using namespace mp_units::si::unit_symbols;
using namespace mp_units::usc::unit_symbols;
quantity_point temp = absolute<deg_C>(20.);
quantity_point temp = point<deg_C>(20.);
std::println("Temperature: {} ({})",
temp.quantity_from_zero(),
temp.in(deg_F).quantity_from_zero());