Change consteval to constexpr
Closed this issue · 1 comments
tgurriet commented
Hello.
Thanks for the great library!
Is it possible to change consteval
to constexpr
for type_name
and member_name
?
This prevents constructs like.
A val;
static constexpr size_t SIZE = reflect::size<A>;
static_for<SIZE>(
[&](const auto i)
{
std::cout << std::string_view(reflect::member_name<i.value>(val)) << std::endl;
std::cout << std::string_view(reflect::type_name(reflect::get<i.value>(val)))
<< std::endl;
});
Where static_for
is a recursive call wrapper.
krzysztof-jusiak commented
Fixed by 9e43544