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,