Skip to content

Commit

Permalink
fix definition
Browse files Browse the repository at this point in the history
  • Loading branch information
apolukhin committed Aug 16, 2020
1 parent 26867f4 commit 89b1d45
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion include/boost/pfr/detail/fields_count.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 <class Type> /*constexpr*/ operator Type&&() const noexcept {}; // Allows initialization of rvalue reference fields and move-only types
template <class Type> /*constexpr*/ operator Type&&() const noexcept { // Allows initialization of rvalue reference fields and move-only types
return detail::unsafe_declval<Type&&>();
};
};


Expand Down

0 comments on commit 89b1d45

Please sign in to comment.