From aec468ca35c8573e0a865dae4328d355620e9b83 Mon Sep 17 00:00:00 2001 From: Robert Haschke Date: Sat, 7 Feb 2026 10:43:20 +0100 Subject: [PATCH] fixup! #441 --- include/magic_enum/magic_enum.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/magic_enum/magic_enum.hpp b/include/magic_enum/magic_enum.hpp index e132409ec..62599a12c 100644 --- a/include/magic_enum/magic_enum.hpp +++ b/include/magic_enum/magic_enum.hpp @@ -1258,7 +1258,8 @@ template // Returns underlying value from enum value. template -[[nodiscard]] constexpr auto enum_underlying(E value) noexcept -> -> underlying_type_t { +[[nodiscard]] constexpr auto enum_underlying(E value) noexcept -> underlying_type_t +{ return static_cast>(value); }