diff --git a/include/boost/pfr/detail/core14_classic.hpp b/include/boost/pfr/detail/core14_classic.hpp index 610dbd3..736705a 100644 --- a/include/boost/pfr/detail/core14_classic.hpp +++ b/include/boost/pfr/detail/core14_classic.hpp @@ -549,6 +549,11 @@ constexpr bool is_flat_refelectable(std::index_sequence) noexcept { return true; } +template +constexpr bool is_flat_refelectable(std::index_sequence<>) noexcept { + return true; ///< all empty structs always flat refelectable +} + template auto tie_as_flat_tuple(T& lvalue) noexcept { static_assert(