ptr_traits.h (pointer_traits<T*>::pointer_to): Use noexcept.

2011-06-14  Jonathan Wakely  <jwakely.gcc@gmail.com>

	* include/bits/ptr_traits.h (pointer_traits<T*>::pointer_to): Use
	noexcept.

From-SVN: r175057
This commit is contained in:
Jonathan Wakely 2011-06-14 22:08:24 +00:00 committed by Jonathan Wakely
parent 764703cdea
commit d2393b3adb
2 changed files with 13 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2011-06-14 Jonathan Wakely <jwakely.gcc@gmail.com>
* include/bits/ptr_traits.h (pointer_traits<T*>::pointer_to): Use
noexcept.
2011-06-14 Paolo Carlini <paolo.carlini@oracle.com>
* include/std/valarray (~valarray): Use noexcept.
@ -44,6 +49,13 @@
Likewise.
* testsuite/23_containers/deque/debug/shrink_to_fit.cc: Likewise.
2011-06-11 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-11 Jonathan Wakely <jwakely.gcc@gmail.com>
* include/ext/extptr_allocator.h (construct, destroy): Fix for C++0x

View File

@ -211,7 +211,7 @@ _GLIBCXX_HAS_NESTED_TYPE(difference_type)
* @return @c addressof(r)
*/
static pointer
pointer_to(typename __ptrtr_not_void<element_type>::__type& __r)
pointer_to(typename __ptrtr_not_void<element_type>::__type& __r) noexcept
{ return std::addressof(__r); }
};