Paolo Carlini
8f0f2a1dfd
re PR libstdc++/37919 ([c++0x] GCC 4.4 regression r141214 of gcc c++0x stl_pair.c causes a boost 1.36 compilation to fail)
...
2008-10-27 Paolo Carlini <paolo.carlini@oracle.com>
PR libstdc++/37919
Revert:
2008-10-18 Douglas Gregor <doug.gregor@gmail.com>
* include/bits/stl_pair.h (__may_be_null_pointer_init): New.
(pair::pair): Eliminate the redundant pair(U1&&, U2&&) constructor.
Add lvalue pair<U1, U2> constructor to handle non-const pair lvalues.
Remove the old variadic constructor, and instead provide several
variadic constructors that avoid failing when attempting to
initialize a pointer from a null pointer constant.
* testsuite/20_util/pair/moveable.cc (test3): Add new tests with
initialization of pointers from the null pointer constant.
From-SVN: r141388
2008-10-27 16:50:23 +00:00
Douglas Gregor
c393ec5a87
stl_pair.h (__may_be_null_pointer_init): New.
...
2008-10-18 Douglas Gregor <doug.gregor@gmail.com>
* include/bits/stl_pair.h (__may_be_null_pointer_init): New.
(pair::pair): Eliminate the redundant pair(U1&&, U2&&) constructor.
Add lvalue pair<U1, U2> constructor to handle non-const pair lvalues.
Remove the old variadic constructor, and instead provide several
variadic constructors that avoid failing when attempting to
initialize a pointer from a null pointer constant.
* testsuite/20_util/pair/moveable.cc (test3): Add new tests with
initialization of pointers from the null pointer constant.
From-SVN: r141214
2008-10-18 23:02:17 +00:00
Paolo Carlini
cbc6c888f9
stl_deque.h (deque<>::operator=(deque&&)): Implement resolution of DR 675, call clear first.
...
2007-11-09 Paolo Carlini <pcarlini@suse.de>
* include/bits/stl_deque.h (deque<>::operator=(deque&&)): Implement
resolution of DR 675, call clear first.
* include/bits/stl_list.h (list<>::operator=(list&&)): Likewise.
* include/bits/stl_bvector.h (vector<bool>::operator=(vector&&)):
Likewise.
* include/bits/stl_vector.h (vector<>::operator=(vector&&)): Likewise.
* include/bits/stl_map.h (map<>::operator=(map&&)): Likewise.
* include/bits/stl_multimap.h (multimap<>::operator=(multimap&&)):
Likewise.
* include/bits/stl_multiset.h (multiset<>::operator=(multiset&&)):
Likewise.
* include/bits/stl_set.h (set<>::operator=(set&&)): Likewise.
* include/debug/map.h (map<>::operator=(map&&)): Likewise.
* include/debug/set.h (set<>::operator=(set&&)): Likewise.
* include/debug/multimap.h (multimap<>::operator=(multimap&&)):
Likewise.
* include/debug/multiset.h (multiset<>::operator=(multiset&&)):
Likewise.
* include/debug/deque (deque<>::operator=(deque&&)): Likewise.
* include/debug/list (list<>::operator=(list&&)): Likewise.
* include/debug/vector (vector<>::operator=(vector&&)): Likewise.
* testsuite/23_containers/multimap/moveable.cc: Adjust.
* testsuite/23_containers/multiset/moveable.cc: Likewise.
* testsuite/23_containers/set/moveable.cc: Likewise.
* testsuite/23_containers/map/moveable.cc: Likewise.
* testsuite/20_util/pair/moveable.cc: Likewise.
* testsuite/23_containers/deque/requirements/dr438/assign_neg.cc:
Adjust dg-error line numbers.
* testsuite/23_containers/deque/requirements/dr438/insert_neg.cc:
Likewise.
* testsuite/23_containers/deque/requirements/dr438/
constructor_1_neg.cc: Likewise.
* testsuite/23_containers/deque/requirements/dr438/
constructor_2_neg.cc: Likewise.
* testsuite/23_containers/list/requirements/dr438/assign_neg.cc:
Likewise.
* testsuite/23_containers/list/requirements/dr438/insert_neg.cc:
Likewise.
* testsuite/23_containers/list/requirements/dr438/
constructor_1_neg.cc: Likewise.
* testsuite/23_containers/list/requirements/dr438/
constructor_2_neg.cc: Likewise.
* testsuite/23_containers/vector/requirements/dr438/assign_neg.cc:
Likewise.
* testsuite/23_containers/vector/requirements/dr438/insert_neg.cc:
Likewise.
* testsuite/23_containers/vector/requirements/dr438/
constructor_1_neg.cc: Likewise.
* testsuite/23_containers/vector/requirements/dr438/
constructor_2_neg.cc: Likewise.
From-SVN: r130051
2007-11-09 17:18:10 +00:00
Paolo Carlini
e14e932bbb
stl_algobase.h (swap): Move...
...
2007-10-10 Paolo Carlini <pcarlini@suse.de>
Chris Fairles <chris.fairles@gmail.com>
* include/bits/stl_algobase.h (swap): Move...
* include/bits/stl_move.h: ... here.
* include/bits/stl_pair.h (pair<>::pair(_U1&&, _U2&&),
pair<>::pair(pair<>&&), pair<>::operator=(pair<>&&),
pair<>::swap(pair&&), swap(&, &), swap(&&, &), swap(&, &&),
make_pair(_T1&&, _T2&&)): Add.
* testsuite/20_util/pair/swap.cc: Add.
Co-Authored-By: Chris Fairles <chris.fairles@gmail.com>
From-SVN: r129198
2007-10-10 09:29:11 +00:00
Paolo Carlini
6c5f0578d9
[multiple changes]
...
2007-10-08 Paolo Carlini <pcarlini@suse.de>
* include/std/utility (identity, move, forward): Move to...
* include/bits/stl_move.h: ... here.
* include/Makefile.am: Add.
* include/bits/stl_algobase.h: Include the latter.
* include/Makefile.in: Regenerate.
* testsuite/20_util/pair/moveable.cc: Remove dg-require-rvalref.
2007-10-08 Chris Jefferson <chris@bubblescope.net>
Paolo Carlini <pcarlini@suse.de>
* include/bits/stl_pair.h (pair<>:pair(pair&&),
pair<>::operator=(pair&&)): Add.
From-SVN: r129123
2007-10-08 11:16:51 +00:00
Chris Jefferson
f5783e34f9
moveable.cc: New.
...
2007-10-03 Chris Jefferson <chris@bubblescope.net>
Benjamin Kosnik <bkoz@redhat.com>
* testsuite/20_util/pair/moveable.cc: New. Merge from
libstdcxx_so_7-branch.
* testsuite/23_containers/deque/capacity/moveable.cc: Same.
* testsuite/23_containers/deque/cons/moveable.cc: Same.
* testsuite/23_containers/deque/modifiers/moveable.cc: Same.
* testsuite/23_containers/deque/moveable.cc: Same.
* testsuite/23_containers/list/moveable.cc: Same.
* testsuite/23_containers/map/moveable.cc: Same.
* testsuite/23_containers/multimap/moveable.cc: Same.
* testsuite/23_containers/multiset/moveable.cc: Same.
* testsuite/23_containers/set/moveable.cc: Same.
* testsuite/23_containers/vector/cons/moveable.cc: Same.
* testsuite/23_containers/vector/modifiers/moveable.cc: Same.
* testsuite/23_containers/vector/moveable.cc: Same.
* testsuite/23_containers/vector/resize/moveable.cc: Same.
* testsuite/25_algorithms/heap/moveable.cc: Same.
* testsuite/25_algorithms/nth_element/moveable.cc: Same.
* testsuite/25_algorithms/partial_sort/moveable.cc: Same.
* testsuite/25_algorithms/partition/moveable.cc: Same.
* testsuite/25_algorithms/remove_if/moveable.cc: Same.
* testsuite/25_algorithms/remove/moveable.cc: Same.
* testsuite/25_algorithms/reverse/moveable.cc: Same.
* testsuite/25_algorithms/rotate/moveable.cc: Same.
* testsuite/25_algorithms/sort/moveable.cc: Same.
* testsuite/25_algorithms/swap_ranges/moveable.cc: Same.
* testsuite/25_algorithms/unique/moveable.cc: Same.
* testsuite/util/testsuite_rvalref.h: New.
* testsuite/25_algorithms/equal/equal.cc: Move to...
* testsuite/25_algorithms/equal/no_operator_ne.cc: ...this.
* testsuite/25_algorithms/heap/heap.cc: Move to...
* testsuite/25_algorithms/heap/1.cc: ...this.
* testsuite/25_algorithms/lower_bound/lower_bound.cc: Move to...
* testsuite/25_algorithms/lower_bound/no_operator_ne.cc: ...this.
* testsuite/25_algorithms/partition/partition.cc: Move to...
* testsuite/25_algorithms/partition/1.cc: ...this.
* testsuite/25_algorithms/stable_partition/1.cc: ... and this.
* testsuite/25_algorithms/search/1.cc: Update from merge.
* testsuite/25_algorithms/search/check_type.cc: Same.
* testsuite/lib/dg-options.exp (dg-require-rvalref): New.
* testsuite/lib/libstdc++.exp (check_v3_target_rvalref): New.
Co-Authored-By: Benjamin Kosnik <bkoz@redhat.com>
From-SVN: r128990
2007-10-03 17:27:18 +00:00
Benjamin Kosnik
f05e2819af
Directory layout flattening.
...
2007-02-20 Benjamin Kosnik <bkoz@redhat.com>
Directory layout flattening.
Added in testsuite:
* 20_util/allocator
* 20_util/auto_ptr
* 20_util/function_objects
* 20_util/function_objects/binders
* 20_util/function_objects/binders/1.cc
* 20_util/function_objects/binders/3113.cc
* 20_util/function_objects/comparisons.cc
* 20_util/pair
* 20_util/raw_storage_iterator
* 20_util/rel_ops.cc
* 20_util/specialized_algorithms
* 20_util/specialized_algorithms/16505.cc
* 20_util/temporary_buffer.cc
* 26_numerics/numeric_arrays/slice_array
* 26_numerics/numeric_arrays/slice_array/array_assignment.cc
* 26_numerics/numeric_arrays/slice_array/requirements
* 26_numerics/numeric_arrays/slice_array/requirements/
explicit_instantiation.cc
* 26_numerics/numeric_arrays/slice_array/requirements/typedefs.cc
* 26_numerics/numeric_arrays/valarray
* 26_numerics/numeric_arrays/valarray/27867.cc
* 26_numerics/numeric_arrays/valarray/28277.cc
* 26_numerics/numeric_arrays/valarray/30416.cc
* 26_numerics/numeric_arrays/valarray/algo.cc
* 26_numerics/numeric_arrays/valarray/binary_closure.cc
* 26_numerics/numeric_arrays/valarray/const_bracket.cc
* 26_numerics/numeric_arrays/valarray/dr543.cc
* 26_numerics/numeric_arrays/valarray/name_lookup.cc
* 26_numerics/numeric_arrays/valarray/operators.cc
* 26_numerics/numeric_arrays/valarray/requirements
* 26_numerics/numeric_arrays/valarray/requirements/
explicit_instantiation.cc
* 26_numerics/numeric_arrays/valarray/requirements/typedefs.cc
* 26_numerics/numeric_arrays/valarray/subset_assignment.cc
* tr1/2_general_utilities/enable_shared_from_this
* tr1/2_general_utilities/shared_ptr
* tr1/2_general_utilities/weak_ptr
Deleted in testsuite:
* 20_util/functional
* 20_util/functional/binders
* 20_util/functional/binders/1.cc
* 20_util/functional/binders/3113.cc
* 20_util/functional/comparisons.cc
* 20_util/memory
* 20_util/memory/16505.cc
* 20_util/memory/allocator
* 20_util/memory/allocator/10378.cc
* 20_util/memory/allocator/14176.cc
* 20_util/memory/allocator/1.cc
* 20_util/memory/allocator/8230.cc
* 20_util/memory/allocator/requirements
* 20_util/memory/allocator/requirements/explicit_instantiation
* 20_util/memory/allocator/requirements/explicit_instantiation/1.cc
* 20_util/memory/auto_ptr
* 20_util/memory/auto_ptr/1.cc
* 20_util/memory/auto_ptr/2.cc
* 20_util/memory/auto_ptr/3946.cc
* 20_util/memory/auto_ptr/3.cc
* 20_util/memory/auto_ptr/4.cc
* 20_util/memory/auto_ptr/5.cc
* 20_util/memory/auto_ptr/6.cc
* 20_util/memory/auto_ptr/7.cc
* 20_util/memory/auto_ptr/assign_neg.cc
* 20_util/memory/auto_ptr/requirements
* 20_util/memory/auto_ptr/requirements/explicit_instantiation
* 20_util/memory/auto_ptr/requirements/explicit_instantiation/1.cc
* 20_util/memory/raw_storage_iterator
* 20_util/memory/raw_storage_iterator/requirements
* 20_util/memory/raw_storage_iterator/requirements/base_classes.cc
* 20_util/memory/raw_storage_iterator/requirements/
explicit_instantiation
* 20_util/memory/raw_storage_iterator/requirements/
explicit_instantiation/1.cc
* 20_util/memory/raw_storage_iterator/requirements/typedefs.cc
* 20_util/memory/temporary_buffer.cc
* 20_util/utility
* 20_util/utility/pair
* 20_util/utility/pair/1.cc
* 20_util/utility/pair/2.cc
* 20_util/utility/pair/3.cc
* 20_util/utility/pair/4.cc
* 20_util/utility/pair/requirements
* 20_util/utility/pair/requirements/explicit_instantiation
* 20_util/utility/pair/requirements/explicit_instantiation/1.cc
* 20_util/utility/rel_ops.cc
* 26_numerics/numeric_arrays/27867.cc
* 26_numerics/numeric_arrays/28277.cc
* 26_numerics/numeric_arrays/30416.cc
* 26_numerics/numeric_arrays/binary_closure.cc
* 26_numerics/numeric_arrays/dr543.cc
* 26_numerics/numeric_arrays/slice_array_assignment.cc
* 26_numerics/numeric_arrays/valarray.cc
* 26_numerics/numeric_arrays/valarray_const_bracket.cc
* 26_numerics/numeric_arrays/valarray_name_lookup.cc
* 26_numerics/numeric_arrays/valarray_operators.cc
* 26_numerics/numeric_arrays/valarray_subset_assignment.cc
* tr1/2_general_utilities/memory
* tr1/2_general_utilities/memory/enable_shared_from_this
* tr1/2_general_utilities/memory/enable_shared_from_this/1.cc
* tr1/2_general_utilities/memory/enable_shared_from_this/not_shared2.cc
* tr1/2_general_utilities/memory/enable_shared_from_this/not_shared3.cc
* tr1/2_general_utilities/memory/enable_shared_from_this/not_shared.cc
* tr1/2_general_utilities/memory/enable_shared_from_this/requirements
* tr1/2_general_utilities/memory/enable_shared_from_this/
requirements/explicit_instantiation
* tr1/2_general_utilities/memory/enable_shared_from_this/
requirements/explicit_instantiation/1.cc
* tr1/2_general_utilities/memory/enable_shared_from_this/shared.cc
* tr1/2_general_utilities/memory/enable_shared_from_this/
still_shared.cc
* tr1/2_general_utilities/memory/shared_ptr
* tr1/2_general_utilities/memory/shared_ptr/assign
* tr1/2_general_utilities/memory/shared_ptr/assign/assign.cc
* tr1/2_general_utilities/memory/shared_ptr/assign/auto_ptr.cc
* tr1/2_general_utilities/memory/shared_ptr/assign/auto_ptr_neg.cc
* tr1/2_general_utilities/memory/shared_ptr/assign/
auto_ptr_rvalue_neg.cc
* tr1/2_general_utilities/memory/shared_ptr/assign/dr541.cc
* tr1/2_general_utilities/memory/shared_ptr/assign/shared_ptr.cc
* tr1/2_general_utilities/memory/shared_ptr/assign/shared_ptr_neg.cc
* tr1/2_general_utilities/memory/shared_ptr/casts
* tr1/2_general_utilities/memory/shared_ptr/casts/1.cc
* tr1/2_general_utilities/memory/shared_ptr/comparison
* tr1/2_general_utilities/memory/shared_ptr/comparison/cmp.cc
* tr1/2_general_utilities/memory/shared_ptr/cons
* tr1/2_general_utilities/memory/shared_ptr/cons/auto_ptr.cc
* tr1/2_general_utilities/memory/shared_ptr/cons/auto_ptr_neg.cc
* tr1/2_general_utilities/memory/shared_ptr/cons/copy.cc
* tr1/2_general_utilities/memory/shared_ptr/cons/default.cc
* tr1/2_general_utilities/memory/shared_ptr/cons/pointer.cc
* tr1/2_general_utilities/memory/shared_ptr/cons/weak_ptr.cc
* tr1/2_general_utilities/memory/shared_ptr/cons/weak_ptr_expired.cc
* tr1/2_general_utilities/memory/shared_ptr/dest
* tr1/2_general_utilities/memory/shared_ptr/dest/dest.cc
* tr1/2_general_utilities/memory/shared_ptr/misc
* tr1/2_general_utilities/memory/shared_ptr/misc/24595.cc
* tr1/2_general_utilities/memory/shared_ptr/misc/io.cc
* tr1/2_general_utilities/memory/shared_ptr/misc/swap.cc
* tr1/2_general_utilities/memory/shared_ptr/modifiers
* tr1/2_general_utilities/memory/shared_ptr/modifiers/24805.cc
* tr1/2_general_utilities/memory/shared_ptr/modifiers/reset.cc
* tr1/2_general_utilities/memory/shared_ptr/modifiers/reset_neg.cc
* tr1/2_general_utilities/memory/shared_ptr/modifiers/swap.cc
* tr1/2_general_utilities/memory/shared_ptr/modifiers/swap_neg.cc
* tr1/2_general_utilities/memory/shared_ptr/observers
* tr1/2_general_utilities/memory/shared_ptr/observers/bool_conv.cc
* tr1/2_general_utilities/memory/shared_ptr/observers/get.cc
* tr1/2_general_utilities/memory/shared_ptr/observers/unique.cc
* tr1/2_general_utilities/memory/shared_ptr/observers/use_count.cc
* tr1/2_general_utilities/memory/shared_ptr/requirements
* tr1/2_general_utilities/memory/shared_ptr/requirements/
explicit_instantiation
* tr1/2_general_utilities/memory/shared_ptr/requirements/
explicit_instantiation/1.cc
* tr1/2_general_utilities/memory/shared_ptr/thread
* tr1/2_general_utilities/memory/shared_ptr/thread/
default_weaktoshared.cc
* tr1/2_general_utilities/memory/shared_ptr/thread/
mutex_weaktoshared.cc
* tr1/2_general_utilities/memory/weak_ptr
* tr1/2_general_utilities/memory/weak_ptr/lock
* tr1/2_general_utilities/memory/weak_ptr/lock/1.cc
* tr1/2_general_utilities/memory/weak_ptr/requirements
* tr1/2_general_utilities/memory/weak_ptr/requirements/
explicit_instantiation
* tr1/2_general_utilities/memory/weak_ptr/requirements/
explicit_instantiation/1.cc
From-SVN: r122171
2007-02-20 19:47:35 +00:00
Zack Weinberg
ea1ebe1266
Revert bad import
...
From-SVN: r94621
2005-02-02 22:09:16 +00:00
Nick Clifton
b919490c9c
Imported from mainline FSF repositories
...
From-SVN: r94600
2005-02-02 19:06:59 +00:00
Paolo Carlini
bdef965932
testsuite/20_util/allocator/, auto_ptr/, raw_storage_iterator.cc, temporary_buffer.cc: Move to...
...
2004-07-02 Paolo Carlini <pcarlini@suse.de>
* testsuite/20_util/allocator/, auto_ptr/, raw_storage_iterator.cc,
temporary_buffer.cc: Move to...
* testsuite/20_util/memory/: ... here, new dir.
* testsuite/20_util/pair/, testsuite/24_iterators/rel_ops.cc:
Move to...
* testsuite/20_util/utility/: ... here, new dir.
* testsuite/20_util/binders.cc, comparisons.cc: Move to...
* testsuite/20_util/functional/: ... here, new dir.
From-SVN: r84028
2004-07-02 20:44:08 +00:00
Benjamin Kosnik
60af005f4b
ifstream_extract_float.cc: New.
...
2004-01-13 Benjamin Kosnik <bkoz@redhat.com>
* testsuite/performance/ifstream_extract_float.cc: New.
* testsuite/performance/ofstream_insert_float.cc: Float generation
matches above.
* 20_util/auto_ptr.cc, auto_ptr_neg.cc: Break into...
* 20_util/auto_ptr/1.cc: ...this.
* 20_util/auto_ptr/2.cc: Same.
* 20_util/auto_ptr/3.cc: Same.
* 20_util/auto_ptr/3946.cc: Same.
* 20_util/auto_ptr/4.cc: Same.
* 20_util/auto_ptr/5.cc: Same.
* 20_util/auto_ptr/6.cc: Same.
* 20_util/auto_ptr/7.cc: Same.
* 20_util/auto_ptr/assign_neg.cc
* 20_util/pairs.cc: Break into...
* 20_util/pair/1.cc: ...this.
* 20_util/pair/2.cc: Same.
* 20_util/pair/3.cc: Same.
* 20_util/pair/4.cc: Same.
From-SVN: r75811
2004-01-13 18:57:45 +00:00