diff --git a/include/boost/pfr/detail/fields_count.hpp b/include/boost/pfr/detail/fields_count.hpp index e279d66a..f26f79d5 100644 --- a/include/boost/pfr/detail/fields_count.hpp +++ b/include/boost/pfr/detail/fields_count.hpp @@ -37,7 +37,9 @@ struct ubiq_lref_constructor { ///////////////////// Structure that can be converted to rvalue reference to anything struct ubiq_rref_constructor { std::size_t ignore; - template /*constexpr*/ operator Type&&() const noexcept {}; // Allows initialization of rvalue reference fields and move-only types + template /*constexpr*/ operator Type&&() const noexcept { // Allows initialization of rvalue reference fields and move-only types + return detail::unsafe_declval(); + }; };