diff --git a/src/core/include/mp-units/unit.h b/src/core/include/mp-units/unit.h index 86b50ee3d..0fb778333 100644 --- a/src/core/include/mp-units/unit.h +++ b/src/core/include/mp-units/unit.h @@ -821,7 +821,7 @@ template // TODO Refactor to `unit_symbol(U, fmt)` when P1045: constexpr Function Parameters is available template -[[nodiscard]] constexpr auto unit_symbol(U) +[[nodiscard]] consteval auto unit_symbol(U) { auto get_size = []() consteval { std::basic_string buffer;