Compare commits

..

1 Commits

Author SHA1 Message Date
Beman Dawes
565a79c136 Release 1.47.0
[SVN r73007]
2011-07-11 22:16:03 +00:00
3 changed files with 3 additions and 47 deletions

View File

@@ -69,25 +69,7 @@ public:
{
}
// generated copy constructor, destructor are fine...
#if defined( BOOST_HAS_RVALUE_REFS )
// ... except in C++0x, move disables the implicit copy
shared_array( shared_array const & r ): px( r.px ), pn( r.pn ) // never throws
{
}
#endif
// assignment
shared_array & operator=( shared_array const & r ) // never throws
{
this_type( r ).swap( *this );
return *this;
}
// generated copy constructor, assignment, destructor are fine
void reset(T * p = 0)
{

View File

@@ -203,17 +203,7 @@ public:
boost::detail::sp_enable_shared_from_this( this, p, p );
}
// generated copy constructor, destructor are fine...
#if defined( BOOST_HAS_RVALUE_REFS )
// ... except in C++0x, move disables the implicit copy
shared_ptr( shared_ptr const & r ): px( r.px ), pn( r.pn ) // never throws
{
}
#endif
// generated copy constructor, destructor are fine
template<class Y>
explicit shared_ptr(weak_ptr<Y> const & r): pn(r.pn) // may throw

View File

@@ -40,24 +40,8 @@ public:
{
}
// generated copy constructor, assignment, destructor are fine...
// generated copy constructor, assignment, destructor are fine
#if defined( BOOST_HAS_RVALUE_REFS )
// ... except in C++0x, move disables the implicit copy
weak_ptr( weak_ptr const & r ): px( r.px ), pn( r.pn ) // never throws
{
}
weak_ptr & operator=( weak_ptr const & r ) // never throws
{
px = r.px;
pn = r.pn;
return *this;
}
#endif
//
// The "obvious" converting constructor implementation: