gcc/libstdc++-v3/testsuite
Jonathan Wakely 8dd5e93af6 shared_ptr.h: Update comparisons to match WP.
2008-11-01  Jonathan Wakely  <jwakely.gcc@gmail.com>

        * include/bits/shared_ptr.h: Update comparisons to match WP.
        (_Sp_counted_ptr): Make copy and assignment members deleted.
        (_Sp_counted_deleter): Remove private copy and assignment members.
        (__shared_count::_M_less,__weak_count::_M_less,operator<): Replace
        friend operator< with overloaded _M_less member functions to allow
        comparison with either shared_count or weak_count.
        (__shared_ptr::_M_less,__weak_ptr::_M_less): Replace with...
        (__shared_ptr::owner_before,__weak_ptr::owner_before): New overloads
        for ownership-based ordering.
        (operator<(__shared_ptr,__shared_ptr)): Compare stored pointers,
        make non-friend.
        (operator==(__shared_ptr,__shared_ptr)): Make non-friend.
        (operator!=(__shared_ptr,__shared_ptr)): Likewise.
        (less<__shared_ptr<>>,less<shared_ptr<>>,_Sp_less): Explicitly call
        pointer specialization.
        (__weak_ptr::operator<,weak_ptr::operator<=,weak_ptr::operator>,
        weak_ptr::operator>=): Remove operator< and delete all comparisons.
        (_Sp_owner_less,owner_less): Predicate for ownership-based ordering.
        (operator<(shared_ptr,shared_ptr): Overload for derived shared_ptr.
        (operator==(shared_ptr,shared_ptr): Likewise.
        (operator!=(shared_ptr,shared_ptr): Likewise.
        (swap(shared_ptr,shared_ptr)): Fix parameter types.
        (swap(weak_ptr,weak_ptr)): Add missing overload.
        * testsuite/20_util/owner_less/cmp.cc: New.
        * testsuite/20_util/shared_ptr/comparison/cmp.cc: Test other ops.
        * testsuite/20_util/shared_ptr/comparison/less.cc: New.
        * testsuite/20_util/shared_ptr/observers/owner_before.cc: New.
        * testsuite/20_util/weak_ptr/observers/owner_before.cc: New.
        * testsuite/20_util/weak_ptr/comparison/cmp_neg.cc: New.

From-SVN: r141512
2008-11-01 11:29:06 +00:00
..
17_intro forward_list: New. 2008-10-15 16:48:13 +00:00
18_support [multiple changes] 2008-08-23 11:28:30 +00:00
19_diagnostics error_constants.h (enum errc): Remove no_posix_equivalent. 2008-10-24 10:41:42 +00:00
20_util shared_ptr.h: Update comparisons to match WP. 2008-11-01 11:29:06 +00:00
21_strings re PR libstdc++/37522 (Incorrect vswprintf prototype breaks __to_xstring) 2008-10-27 15:01:28 +00:00
22_locale re PR libstdc++/37958 (num_get<>::do_get(bool) sets eofbit flag incorrectly when boolalpha == true) 2008-10-31 16:47:48 +00:00
23_containers 2008-10-19 Paolo Carlini <paolo.carlini@oracle.com> 2008-10-19 14:49:38 +00:00
24_iterators stl_iterator_base_funcs.h (next, prev): Add in C++0x mode. 2008-06-17 21:33:15 +00:00
25_algorithms 37547.cc: Return void to avoid warnings. 2008-09-23 18:24:20 +00:00
26_numerics Add initializer_list support as per N2679. 2008-07-21 15:40:39 -04:00
27_io system_error (is_error_code_enum): Specialize for errc. 2008-10-22 15:27:44 +00:00
28_regex Add initializer_list support as per N2679. 2008-07-21 15:40:39 -04:00
29_atomics default.cc: Avoid -Wall warnings. 2008-06-25 23:28:14 +00:00
30_threads system_error (is_error_code_enum): Specialize for errc. 2008-10-22 15:27:44 +00:00
abi re PR c++/37761 (Revision 140916 caused libstdc++ failures) 2008-10-07 13:35:35 -04:00
backward re PR libstdc++/30085 (switch debug mode hash containers from ext to tr1) 2007-10-18 15:22:58 +00:00
config * testsuite/config/default.exp: Load gcc dejapatches.exp. 2008-02-15 09:09:47 +00:00
data pb_assoc: Delete. 2006-06-14 23:09:51 +00:00
ext PR libstdc++/33979 (partial) 2008-08-20 19:29:54 +00:00
lib re PR libstdc++/37522 (Incorrect vswprintf prototype breaks __to_xstring) 2008-10-27 15:01:28 +00:00
libstdc++-abi util: New directory. 2006-06-07 14:58:24 +00:00
libstdc++-dg re PR libstdc++/29095 (cxxabi.h __cxa_cdtor_type not declared when included from "C") 2006-10-09 23:53:35 +00:00
performance using.xml: Outline exception topics. 2008-06-06 19:32:43 +00:00
thread 3983-2.cc: Avoid -Wall warnings. 2008-01-31 17:19:55 +00:00
tr1 2008-10-20 Paolo Carlini <paolo.carlini@oracle.com> 2008-10-20 16:43:28 +00:00
util system_error (native_category): Remove. 2008-10-10 12:39:01 +00:00
Makefile.am dg-extract-results.sh: New file. 2008-10-24 10:58:44 +02:00
Makefile.in dg-extract-results.sh: New file. 2008-10-24 10:58:44 +02:00