Added base_from_member specialization for members of lvalue-reference type

This commit is contained in:
K-ballo committed 2014-06-11 18:55:12 -03:00
1 parent 61d07273fc
commit 51e482edfe
4 files changed
+56

No files matched your search

@@ -148,6 +148,19 @@ protected:
}; // boost::base_from_member
template < typename MemberType, int UniqueID >
class base_from_member<MemberType&, UniqueID>
{
protected:
MemberType& member;
explicit BOOST_CONSTEXPR base_from_member( MemberType& x )
BOOST_NOEXCEPT
: member( x )
{}
}; // boost::base_from_member
} // namespace boost