From 170a345fdf8def68d91f0ef01288ed484132dd85 Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Thu, 4 Jul 2024 14:46:14 +0100 Subject: [PATCH] fix: `unit_symbol` and `dimension_symbol` fixed for pre-C++23 compilation --- src/core/include/mp-units/framework/dimension.h | 2 +- src/core/include/mp-units/framework/unit.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/include/mp-units/framework/dimension.h b/src/core/include/mp-units/framework/dimension.h index 2a65aa9e..7155a740 100644 --- a/src/core/include/mp-units/framework/dimension.h +++ b/src/core/include/mp-units/framework/dimension.h @@ -322,7 +322,7 @@ MP_UNITS_EXPORT template(std::from_range, text); + return basic_fixed_string(std::from_range, oversized_symbol_text); #endif } diff --git a/src/core/include/mp-units/framework/unit.h b/src/core/include/mp-units/framework/unit.h index d1b58e56..73655ef2 100644 --- a/src/core/include/mp-units/framework/unit.h +++ b/src/core/include/mp-units/framework/unit.h @@ -833,7 +833,7 @@ MP_UNITS_EXPORT template(std::from_range, text); + return basic_fixed_string(std::from_range, oversized_symbol_text); #endif }