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++/36962] [C++0x] Add constructors / assignment operators from unique_ptr to shared_ptr



------- Comment #18 from redi at gcc dot gnu dot org  2008-09-04 22:34 -------
Subject: Bug 36962

Author: redi
Date: Thu Sep  4 22:33:10 2008
New Revision: 140012

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=140012
Log:
        PR libstdc++/36962
        * include/Makefile.am: Update headers.
        * include/Makefile.in: Regenerate.
        * include/std/memory: Update headers.
        * include/tr1/memory: Likewise.
        * include/tr1_impl/boost_shared_ptr.h: Remove, splitting into
        separate implementations for std and tr1.
        * include/bits/boost_sp_shared_count.h: Remove.
        * include/tr1/boost_sp_shared_count.h: Remove.
        * include/bits/shared_ptr.h: New. Combines boost_sp_shared_count.h
        and boost_shared_ptr.h into one file.
        (__shared_count,__shared_ptr,shared_ptr,swap): Add unique_ptr
        and rvalue-reference support as per current WP.
        * include/tr1/shared_ptr.h: New. Combines boost_sp_shared_count.h
        and boost_shared_ptr.h into one file.
        * testsuite/20_util/shared_ptr/cons/unique_ptr.cc: New.
        * testsuite/20_util/shared_ptr/cons/unique_ptr_deleter.cc: New.
        * testsuite/20_util/shared_ptr/cons/unique_ptr_deleter_ref.cc: New.
        * testsuite/20_util/shared_ptr/cons/unique_ptr_neg.cc: New.
        * testsuite/20_util/shared_ptr/assign/auto_ptr_rvalue.cc: New.
        * testsuite/20_util/shared_ptr/assign/unique_ptr_lvalue_neg.cc: New.
        * testsuite/20_util/shared_ptr/assign/unique_ptr_rvalue.cc: New.
        * testsuite/20_util/shared_ptr/modifiers/swap_rvalue.cc: New.
        * testsuite/20_util/shared_ptr/assign/auto_ptr_rvalue_neg.cc: Remove.

Added:
    trunk/libstdc++-v3/include/bits/shared_ptr.h
    trunk/libstdc++-v3/include/tr1/shared_ptr.h
    trunk/libstdc++-v3/testsuite/20_util/shared_ptr/assign/auto_ptr_rvalue.cc
   
trunk/libstdc++-v3/testsuite/20_util/shared_ptr/assign/unique_ptr_lvalue_neg.cc
    trunk/libstdc++-v3/testsuite/20_util/shared_ptr/assign/unique_ptr_rvalue.cc
    trunk/libstdc++-v3/testsuite/20_util/shared_ptr/cons/unique_ptr.cc
    trunk/libstdc++-v3/testsuite/20_util/shared_ptr/cons/unique_ptr_deleter.cc
   
trunk/libstdc++-v3/testsuite/20_util/shared_ptr/cons/unique_ptr_deleter_ref.cc
    trunk/libstdc++-v3/testsuite/20_util/shared_ptr/cons/unique_ptr_neg.cc
    trunk/libstdc++-v3/testsuite/20_util/shared_ptr/modifiers/swap_rvalue.cc
Removed:
    trunk/libstdc++-v3/include/bits/boost_sp_shared_count.h
    trunk/libstdc++-v3/include/tr1/boost_sp_shared_count.h
    trunk/libstdc++-v3/include/tr1_impl/boost_shared_ptr.h
   
trunk/libstdc++-v3/testsuite/20_util/shared_ptr/assign/auto_ptr_rvalue_neg.cc
Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/include/Makefile.am
    trunk/libstdc++-v3/include/Makefile.in
    trunk/libstdc++-v3/include/std/memory
    trunk/libstdc++-v3/include/tr1/memory


-- 


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


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