From 09d79d4fb7f0080da50ff8abea7f24968b714f44 Mon Sep 17 00:00:00 2001 From: metabeyond Date: Fri, 15 Nov 2024 10:01:50 +0800 Subject: [PATCH] Fixed enum parse issue. --- include/essence/meta/enum.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/essence/meta/enum.hpp b/include/essence/meta/enum.hpp index d24738c..15b317c 100644 --- a/include/essence/meta/enum.hpp +++ b/include/essence/meta/enum.hpp @@ -52,12 +52,12 @@ namespace essence::meta { template requires std::is_enum_v generator> probe_enum_names() { + static constexpr auto range = get_enum_searching_range(); + static constexpr auto min = range.first; + static constexpr auto max = range.second; + const auto origin = []( std::index_sequence) -> generator> { - constexpr auto range = get_enum_searching_range(); - constexpr auto min = range.first; - constexpr auto max = range.second; - (co_yield std::pair{get_literal_string_v(min + Is), identifier_param{ .shortened = Short,