Skip to content
Snippets Groups Projects
Commit 0e8330d9 authored by Jonathan Wakely's avatar Jonathan Wakely Committed by Jonathan Wakely
Browse files

typedefs.cc: Check rebind and improve propagate_on_container_move_assignment check.

	* testsuite/20_util/allocator/requirements/typedefs.cc: Check rebind
	and improve propagate_on_container_move_assignment check.

From-SVN: r193639
parent 1b5dc776
No related branches found
No related tags found
No related merge requests found
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> 2012-11-19 Jonathan Wakely <jwakely.gcc@gmail.com>
* include/bits/stl_algo.h (reverse_copy): Update comment per DR 2074. * include/bits/stl_algo.h (reverse_copy): Update comment per DR 2074.
......
...@@ -42,5 +42,10 @@ static_assert( is_same<allocator<int>::const_reference, const int&>::value, ...@@ -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, static_assert( is_same<allocator<int>::value_type, int>::value,
"value_type" ); "value_type" );
static_assert( allocator<int>::propagate_on_container_move_assignment::value, static_assert( is_same<allocator<int>::rebind<char>::other,
"propagate_on_container_move_assignment is true" ); 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" );
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment