From 89b1d45ff7118dcfd16a0bf458b281b1611d781a Mon Sep 17 00:00:00 2001 From: Antony Polukhin Date: Sun, 16 Aug 2020 10:59:27 +0300 Subject: [PATCH] fix definition --- include/boost/pfr/detail/fields_count.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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(); + }; };