http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57228

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |INVALID

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
cppreference is wrong.

This exact case has been discussed on the LWG reflector and everyone agreed
it's invalid.  The shared_ptr(Y*) constructor use_count() == 1 as a
postcondition, which is not compatible with the claim that you can share
ownership with existing shared_ptr objects.

Reply via email to