summaryrefslogtreecommitdiff
path: root/libstdc++-v3
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely.gcc@gmail.com>2013-11-01 11:59:51 +0000
committerJonathan Wakely <redi@gcc.gnu.org>2013-11-01 11:59:51 +0000
commitbef49287daa8ff2b30b3f901c8dd4ba7e1471135 (patch)
tree2d7024af7ec4aebddfeeb9bcd8f18f96ba1d3212 /libstdc++-v3
parent7115d32a362ccb1eb74ebe024549c46468d52b70 (diff)
downloadgcc-bef49287daa8ff2b30b3f901c8dd4ba7e1471135.tar.gz
* include/bits/stl_function.h (logical_not<void>): Add noexcept.
From-SVN: r204293
Diffstat (limited to 'libstdc++-v3')
-rw-r--r--libstdc++-v3/ChangeLog4
-rw-r--r--libstdc++-v3/include/bits/stl_function.h4
2 files changed, 7 insertions, 1 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index 4b3ad1a8b2a..a7b19ac97a7 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,3 +1,7 @@
+2013-11-01 Jonathan Wakely <jwakely.gcc@gmail.com>
+
+ * include/bits/stl_function.h (logical_not<void>): Add noexcept.
+
2013-11-01 Paolo Carlini <paolo.carlini@oracle.com>
PR libstdc++/58952
diff --git a/libstdc++-v3/include/bits/stl_function.h b/libstdc++-v3/include/bits/stl_function.h
index d2e5d134663..e5eed0698ab 100644
--- a/libstdc++-v3/include/bits/stl_function.h
+++ b/libstdc++-v3/include/bits/stl_function.h
@@ -554,7 +554,9 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
{
template <typename _Tp>
auto
- operator()(_Tp&& __t) const -> decltype(!std::forward<_Tp>(__t))
+ operator()(_Tp&& __t) const
+ noexcept(noexcept(!std::forward<_Tp>(__t)))
+ -> decltype(!std::forward<_Tp>(__t))
{ return !std::forward<_Tp>(__t); }
typedef __is_transparent is_transparent;