stl_vector.h: Use new allocator model in C++0x mode.
[gcc.git] / libstdc++-v3 / ChangeLog
index 97e0b3764a353148d6f9fa3129a7e69f728f8c15..1304b9241e2800599a953fef85abfd8502d027d4 100644 (file)
@@ -1,3 +1,109 @@
+2011-07-09  Jonathan Wakely  <jwakely.gcc@gmail.com>
+
+       * include/bits/stl_vector.h: Use new allocator model in C++0x mode.
+       * include/bits/vector.tcc: Likewise.
+       * testsuite/util/testsuite_allocator.h (propagating_allocator): Define.
+       * testsuite/23_containers/vector/allocator/copy_assign.cc: New.
+       * testsuite/23_containers/vector/allocator/noexcept.cc: New.
+       * testsuite/23_containers/vector/allocator/copy.cc: New.
+       * testsuite/23_containers/vector/allocator/swap.cc: New.
+       * testsuite/23_containers/vector/allocator/move_assign.cc: New.
+       * testsuite/23_containers/vector/requirements/dr438/assign_neg.cc:
+       Adjust dg-error line numbers.
+       * 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.
+
+2011-07-09  Jonathan Wakely  <jwakely.gcc@gmail.com>
+
+       * include/ext/alloc_traits.h (__allocator_always_compares_equal): New
+       trait, provide partial specializations for known allocators.
+       (__alloc_traits::construct, __alloc_traits::destroy): Overload for
+       non-standard pointer types.
+       (__alloc_traits::_S_always_equal): New trait for use with noexcept.
+       (__alloc_traits::_S_nothrow_move): Likewise.
+       (__alloc_traits::_S_nothrow_swap): Likewise.
+
+2011-07-09  Jonathan Wakely  <jwakely.gcc@gmail.com>
+
+       * include/ext/cast.h: Fix typo in include guard.
+       * include/ext/pointer.h (_Unqualified_type): Remove redundant
+       partial specializations for volatile types. Fix typos in comments.
+       (pointer_traits<_Pointer_adaptor<Tp>>::pointer_to): Define.
+
+2011-07-09  Jonathan Wakely  <jwakely.gcc@gmail.com>
+
+       PR libstdc++/49668
+       * include/std/functional (__bind_simple): Define.
+       * include/std/future (_Task_setter): Parameterize by type of result
+       pointer instead of state object.
+       (_S_task_setter): Type deduction helper.
+       (_Task_state): Use _S_task_setter and __bind_simple.
+       (_Deferred_state, _Async_state): Store call wrapper directly not as
+       std::function. Use _S_task_setter and __bind_simple.
+       (_S_make_deferred_state, _S_make_async_state): Type deduction helpers.
+       (async): Use new functions and __bind_simple.
+       * include/std/mutex (call_once): Use __bind_simple.
+       * include/std/thread (thread): Likewise. Remove unused headers.
+       * src/thread.cc: Add header.
+       * testsuite/30_threads/async/49668.cc: New.
+       * testsuite/30_threads/call_once/49668.cc: New.
+       * testsuite/30_threads/thread/cons/49668.cc: New.
+       * testsuite/30_threads/thread/cons/moveable.cc: Remove unused bool.
+
+2011-07-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
+
+       * configure.host (abi_baseline_subdir_switch): Describe.
+       Provide default.
+       (*-*-solaris2.[89], *-*-solaris2.1[0-9]): Override.
+       * acinclude.m4 (GLIBCXX_CONFIGURE_TESTSUITE): Substitute
+       baseline_subdir_switch.
+       * testsuite/Makefile.am (site.exp): Emit it.
+       (baseline_subdir): Use it.
+       * testsuite/libstdc++-abi/abi.exp: Use it.
+       * configure: Regenerate.
+       * Makefile.in: Regenerate.
+       * doc/Makefile.in: Regenerate.
+       * include/Makefile.in: Regenerate.
+       * libsupc++/Makefile.in: Regenerate.
+       * po/Makefile.in: Regenerate.
+       * python/Makefile.in: Regenerate.
+       * src/Makefile.in: Regenerate.
+       * testsuite/Makefile.in: Regenerate.
+
+2011-06-29  François Dumont  <francois.cppdevs@free.fr>
+
+       * include/debug/set.h, unordered_map, multiset.h, forward_list,
+       unordered_set, vector, deque, string, list, multimap.h: Remove
+       base class default constructor calls.
+       * include/debug/map.h: Likewise and cleanup several redefinition of
+       base iterator typedef.
+
+2011-06-29  Nathan Sidwell  <nathan@codesourcery.com>
+
+       * libsupc++/eh_arm.c (__cxa_type_match): Construct address of
+       thrown object here.  Return succeded_with_ptr_to_base for all
+       pointer cases.
+
+2011-06-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
+
+       * testsuite/tr1/6_containers/tuple/creation_functions/tie2.cc: Fix for
+       C++0x mode.
+       * testsuite/25_algorithms/sort/35588.cc: Likewise.
+       * testsuite/26_numerics/headers/complex/synopsis.cc: Likewise.
+
+2011-06-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
+
+       * testsuite/20_util/bind/socket.cc: Use variable and remove attribute.
+
+2011-06-22  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       * include/ext/pb_ds/detail/pat_trie_/pat_trie_base.hpp: Avoid -Wall
+       warning.
+
 2011-06-22  Paolo Carlini  <paolo.carlini@oracle.com>
 
        * testsuite/20_util/reference_wrapper/invoke.cc: Avoid -Wall warnings.