2014-12-20 François Dumont <fdumont@gcc.gnu.org>
+ * include/debug/vector (std::__debug::vector<>::clear()): Do not reset
+ guaranteed capacity.
+ * testsuite/23_containers/vector/bool/allocator/swap.cc: Move
+ propagating_allocator equality and inequality operators to __gnu_test
+ namespace.
+
* testsuite/ext/profile/mutex_extensions_neg.cc: Adjust dg-error.
* include/bits/c++config: inline __cxx11 namespace within namespace
using T = bool;
-using __gnu_test::propagating_allocator;
-
-// It is undefined behaviour to swap() containers wth unequal allocators
-// if the allocator doesn't propagate, so ensure the allocators compare
-// equal, while still being able to test propagation via get_personality().
-bool
-operator==(const propagating_allocator<T, false>&,
- const propagating_allocator<T, false>&)
+namespace __gnu_test
{
- return true;
-}
+ // It is undefined behaviour to swap() containers with unequal allocators
+ // if the allocator doesn't propagate, so ensure the allocators compare
+ // equal, while still being able to test propagation via get_personality().
+ bool
+ operator==(const propagating_allocator<T, false>&,
+ const propagating_allocator<T, false>&)
+ {
+ return true;
+ }
-bool
-operator!=(const propagating_allocator<T, false>&,
- const propagating_allocator<T, false>&)
-{
- return false;
+ bool
+ operator!=(const propagating_allocator<T, false>&,
+ const propagating_allocator<T, false>&)
+ {
+ return false;
+ }
}
+using __gnu_test::propagating_allocator;
+
void test01()
{
bool test __attribute__((unused)) = true;