unique_ptr.h
15.7 KB
-
re PR libstdc++/54351 (~unique_ptr() should not set stored pointer to null) · 6d79ba30
PR libstdc++/54351 * include/bits/unique_ptr.h (unique_ptr<T>::~unique_ptr): Do not use reset(). (unique_ptr<T[]>::~unique_ptr()): Likewise. * testsuite/20_util/unique_ptr/54351.cc: New. * testsuite/20_util/unique_ptr/assign/48635_neg.cc: Adjust dg-error line numbers. From-SVN: r190676
Jonathan Wakely committed