C++ PATCH for c++/50500 (DR 1082, implicitly declared copy in class with move)

Jason Merrill jason@redhat.com
Tue Oct 18 17:47:00 GMT 2011


DR 1082 changed the rules for implicitly declared copy constructors and 
assignment operators in the presence of move ctor/op= such that if 
either move operation is present, instead of being suppressed the copy 
operations will still be declared, but as deleted.

I had to add an explicit declaration of the copy ops to shared_ptr as a 
result; Benjamin, do the library changes look right?

Tested x86_64-pc-linux-gnu, applying to trunk.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 50500.patch
Type: text/x-patch
Size: 132648 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20111018/20640563/attachment.bin>


More information about the Gcc-patches mailing list