From 70289048bd22746b9b417ac29b1ef573e6678cdf Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Sun, 30 Jun 2024 17:14:37 +0200 Subject: [PATCH] refactor: Unicode codepoints used for `deg_C` and `deg_F` text symbols --- src/systems/include/mp-units/systems/si/units.h | 2 +- src/systems/include/mp-units/systems/usc.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/systems/include/mp-units/systems/si/units.h b/src/systems/include/mp-units/systems/si/units.h index 8bb41b86..d69668a0 100644 --- a/src/systems/include/mp-units/systems/si/units.h +++ b/src/systems/include/mp-units/systems/si/units.h @@ -80,7 +80,7 @@ inline constexpr struct henry final : named_unit<"H", weber / ampere> {} henry; inline constexpr struct ice_point final : relative_point_origin>(273'150)> {} ice_point; inline constexpr auto zeroth_degree_Celsius = ice_point; -inline constexpr struct degree_Celsius final : named_unit {} degree_Celsius; +inline constexpr struct degree_Celsius final : named_unit {} degree_Celsius; inline constexpr struct lumen final : named_unit<"lm", candela * steradian> {} lumen; inline constexpr struct lux final : named_unit<"lx", lumen / square(metre)> {} lux; diff --git a/src/systems/include/mp-units/systems/usc.h b/src/systems/include/mp-units/systems/usc.h index 49537f74..ec16c71f 100644 --- a/src/systems/include/mp-units/systems/usc.h +++ b/src/systems/include/mp-units/systems/usc.h @@ -119,7 +119,7 @@ inline constexpr struct inch_of_mercury final : named_unit<"inHg", mag_ratio<3'3 // https://en.wikipedia.org/wiki/United_States_customary_units#Temperature inline constexpr struct zeroth_degree_Fahrenheit final : relative_point_origin * si::degree_Celsius>(-32)> {} zeroth_degree_Fahrenheit; -inline constexpr struct degree_Fahrenheit final : named_unit * si::degree_Celsius, zeroth_degree_Fahrenheit> {} degree_Fahrenheit; +inline constexpr struct degree_Fahrenheit final : named_unit * si::degree_Celsius, zeroth_degree_Fahrenheit> {} degree_Fahrenheit; // clang-format on