Aliasing support

[SVN r37405]
This commit is contained in:
Peter Dimov
2007-04-09 18:48:47 +00:00
parent 6e8f075d42
commit ce72827dc7
5 changed files with 166 additions and 0 deletions

View File

@@ -327,6 +327,11 @@ public:
this_type( p, d, a ).swap( *this );
}
template<class Y> void reset( shared_ptr<Y> const & r, T * p )
{
this_type( r, p ).swap( *this );
}
reference operator* () const // never throws
{
BOOST_ASSERT(px != 0);