mirror of
https://github.com/boostorg/smart_ptr.git
synced 2025-11-26 20:29:27 +01:00
Merge branch 'move-alias' of https://github.com/uecasm/smart_ptr into develop
This commit is contained in:
@@ -642,6 +642,14 @@ public:
|
||||
return *this;
|
||||
}
|
||||
|
||||
// aliasing move
|
||||
template<class Y>
|
||||
shared_ptr( shared_ptr<Y> && r, element_type * p ) BOOST_NOEXCEPT : px( p ), pn()
|
||||
{
|
||||
pn.swap( r.pn );
|
||||
r.px = 0;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
#if !defined( BOOST_NO_CXX11_NULLPTR )
|
||||
|
||||
Reference in New Issue
Block a user