Added base_from_member specialization for members of lvalue-reference type

This commit is contained in:
K-ballo
2014-06-11 18:55:12 -03:00
parent 61d07273fc
commit 51e482edfe
4 changed files with 56 additions and 0 deletions
@@ -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