diff --git a/shared_ptr.htm b/shared_ptr.htm index 1eaf661..5b7f47b 100644 --- a/shared_ptr.htm +++ b/shared_ptr.htm @@ -248,9 +248,8 @@ template<class Y> shared_ptr(shared_ptr<Y> const & r); // never
template<class Y> explicit shared_ptr(weak_ptr<Y> const & r);
-

Effects: If r is empty, constructs an empty shared_ptr; - otherwise, constructs a shared_ptr that shares ownership with r - and stores a copy of the pointer stored in r.

+

Effects: Constructs a shared_ptr that shares ownership with + r and stores a copy of the pointer stored in r.

Postconditions: use_count() == r.use_count().

Throws: bad_weak_ptr when r.use_count() == 0.

Exception safety: If an exception is thrown, the constructor has no