Add more aliasing move test cases, add alias move reset

This commit is contained in:
Peter Dimov
2016-04-13 14:31:43 +03:00
parent cd8de9d4a6
commit 522f6c1869
2 changed files with 160 additions and 1 deletions
+10 -1
View File
@@ -687,7 +687,16 @@ public:
{
this_type( r, p ).swap( *this );
}
#if !defined( BOOST_NO_CXX11_RVALUE_REFERENCES )
template<class Y> void reset( shared_ptr<Y> && r, element_type * p )
{
this_type( static_cast< shared_ptr<Y> && >( r ), p ).swap( *this );
}
#endif
// never throws (but has a BOOST_ASSERT in it, so not marked with BOOST_NOEXCEPT)
typename boost::detail::sp_dereference< T >::type operator* () const
{