From b3cd2cf6e3261c91329e71ac0f66680d143e3941 Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Thu, 4 Jul 2024 10:40:12 +0100 Subject: [PATCH] feat: text output for angular units improved (space before symbol removed) --- .../include/mp-units/systems/angular/units.h | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/systems/include/mp-units/systems/angular/units.h b/src/systems/include/mp-units/systems/angular/units.h index 45aa42ce..b8ebdfd9 100644 --- a/src/systems/include/mp-units/systems/angular/units.h +++ b/src/systems/include/mp-units/systems/angular/units.h @@ -31,7 +31,9 @@ #endif MP_UNITS_EXPORT -namespace mp_units::angular { +namespace mp_units { + +namespace angular { // clang-format off inline constexpr struct dim_angle final : base_dimension<"A"> {} dim_angle; @@ -57,4 +59,11 @@ inline constexpr auto deg2 = square(degree); } // namespace unit_symbols -} // namespace mp_units::angular +} // namespace angular + +template<> +inline constexpr bool space_before_unit_symbol = false; +template<> +inline constexpr bool space_before_unit_symbol = false; + +} // namespace mp_units