* [v3] use noexcept in pointer_traits
@ 2011-06-14 22:42 Jonathan Wakely
0 siblings, 0 replies; only message in thread
From: Jonathan Wakely @ 2011-06-14 22:42 UTC (permalink / raw)
To: libstdc++, gcc-patches
[-- Attachment #1: Type: text/plain, Size: 255 bytes --]
I missed the "noexcept" qualifier off this function when I added it recently.
2011-06-14 Jonathan Wakely <jwakely.gcc@gmail.com>
* include/bits/ptr_traits.h (pointer_traits<T*>::pointer_to): Use
noexcept.
Tested x86_64-linux and committed to trunk
[-- Attachment #2: ptne.txt --]
[-- Type: text/plain, Size: 483 bytes --]
Index: include/bits/ptr_traits.h
===================================================================
--- include/bits/ptr_traits.h (revision 175056)
+++ include/bits/ptr_traits.h (working copy)
@@ -211,7 +211,7 @@
* @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); }
};
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-06-14 22:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-14 22:42 [v3] use noexcept in pointer_traits Jonathan Wakely
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).