This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/77990] unique_ptr<T, D>::unique_ptr(T*) imposes CopyConstructible on the deleter


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77990

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Wed Oct 19 09:34:57 2016
New Revision: 241330

URL: https://gcc.gnu.org/viewcvs?rev=241330&root=gcc&view=rev
Log:
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.

Added:
    trunk/libstdc++-v3/testsuite/20_util/unique_ptr/cons/77990.cc
Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/include/bits/unique_ptr.h
    trunk/libstdc++-v3/python/libstdcxx/v6/printers.py
    trunk/libstdc++-v3/python/libstdcxx/v6/xmethods.py
    trunk/libstdc++-v3/testsuite/20_util/unique_ptr/assign/48635_neg.cc
    trunk/libstdc++-v3/testsuite/20_util/unique_ptr/cons/cv_qual.cc

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]