diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2016-10-19 10:34:57 +0100 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2016-10-19 10:34:57 +0100 |
commit | e182393e31609b0d1474cea18c69bbb6c287ae6b (patch) | |
tree | 5bd7a9125561990d1679f5f2e5d2216001012d16 /gcc/tree-if-conv.c | |
parent | e7a3e0c653be4bd32f116dae06438896b7dc915b (diff) | |
download | gcc-e182393e31609b0d1474cea18c69bbb6c287ae6b.zip gcc-e182393e31609b0d1474cea18c69bbb6c287ae6b.tar.gz gcc-e182393e31609b0d1474cea18c69bbb6c287ae6b.tar.bz2 |
PR77990 refactor unique_ptr to encapsulate tuple
PR libstdc++/77990
* include/bits/unique_ptr.h (__uniq_ptr_impl): New type to
encapsulate implementation details.
(unique_ptr::unique_ptr(_Up)): Don't copy deleter object.
(unique_ptr::get, unique_ptr::get_deleter, unique_ptr::release):
Call member functions of implementation object.
(unique_ptr<T[], D>): Likewise.
* python/libstdcxx/v6/printers.py (UniquePointerPrinter): Adjust for
new implementation.
* python/libstdcxx/v6/xmethods.py (UniquePtrGetWorker): Likewise.
* testsuite/20_util/unique_ptr/assign/48635_neg.cc: Adjust dg-error
lines.
* testsuite/20_util/unique_ptr/assign/cv_qual.cc: Likewise.
* testsuite/20_util/unique_ptr/cons/cv_qual.cc: Likewise.
* testsuite/20_util/unique_ptr/cons/77990.cc: New test.
From-SVN: r241330
Diffstat (limited to 'gcc/tree-if-conv.c')
0 files changed, 0 insertions, 0 deletions