diff options
author | redi <redi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-11-19 22:35:11 +0000 |
---|---|---|
committer | redi <redi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-11-19 22:35:11 +0000 |
commit | 0511021e140de28036a917291f3586c4a445b0de (patch) | |
tree | 54466ba2e2e85e99f473366da28defde77e0ef20 /libstdc++-v3 | |
parent | ad62a02bb42ace0167c0280dbef7681e71436942 (diff) | |
download | gcc-0511021e140de28036a917291f3586c4a445b0de.tar.gz |
* testsuite/20_util/allocator/requirements/typedefs.cc: Check rebind
and improve propagate_on_container_move_assignment check.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193639 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3')
-rw-r--r-- | libstdc++-v3/ChangeLog | 5 | ||||
-rw-r--r-- | libstdc++-v3/testsuite/20_util/allocator/requirements/typedefs.cc | 9 |
2 files changed, 12 insertions, 2 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 9636bd7f47f..f96cf7a8e84 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,5 +1,10 @@ 2012-11-19 Jonathan Wakely <jwakely.gcc@gmail.com> + * testsuite/20_util/allocator/requirements/typedefs.cc: Check rebind + and improve propagate_on_container_move_assignment check. + +2012-11-19 Jonathan Wakely <jwakely.gcc@gmail.com> + * include/bits/stl_algo.h (reverse_copy): Update comment per DR 2074. * include/bits/unordered_map.h: Apply DR 2005 resolution. * doc/xml/manual/status_cxx2011.xml: Update per DR 2048. diff --git a/libstdc++-v3/testsuite/20_util/allocator/requirements/typedefs.cc b/libstdc++-v3/testsuite/20_util/allocator/requirements/typedefs.cc index 37d5032ad80..78536de7b42 100644 --- a/libstdc++-v3/testsuite/20_util/allocator/requirements/typedefs.cc +++ b/libstdc++-v3/testsuite/20_util/allocator/requirements/typedefs.cc @@ -42,5 +42,10 @@ static_assert( is_same<allocator<int>::const_reference, const int&>::value, static_assert( is_same<allocator<int>::value_type, int>::value, "value_type" ); -static_assert( allocator<int>::propagate_on_container_move_assignment::value, - "propagate_on_container_move_assignment is true" ); +static_assert( is_same<allocator<int>::rebind<char>::other, + allocator<char>>::value, + "rebind::other" ); + +static_assert( is_same<allocator<int>::propagate_on_container_move_assignment, + std::true_type>::value, + "propagate_on_container_move_assignment" ); |