diff --git a/include/rfl/internal/find_index.hpp b/include/rfl/internal/find_index.hpp index f32bc968..04c524e7 100644 --- a/include/rfl/internal/find_index.hpp +++ b/include/rfl/internal/find_index.hpp @@ -36,7 +36,7 @@ constexpr auto wrap_fields(std::integer_sequence) { /// Finds the index of the field signified by _field_name template -constexpr static int find_index() { +constexpr int find_index() { constexpr int ix = wrap_fields<_field_name, Fields>( std::make_integer_sequence>()); static_assert(rfl::tuple_element_t::name_ == _field_name, @@ -46,7 +46,7 @@ constexpr static int find_index() { /// Finds the index of the field signified by _field_name or -1. template -constexpr static int find_index_or_minus_one() { +constexpr int find_index_or_minus_one() { if constexpr (rfl::tuple_size_v == 0) { return -1; } else {