From b6b5832c56eb3b027c9c98797b27d40e7c475bb4 Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Thu, 30 Nov 2023 10:56:09 +0100 Subject: [PATCH] refactor: `unit_symbol` changed to `consteval` --- src/core/include/mp-units/unit.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;