* include/bits/stl_function.h (logical_not<void>): Add noexcept.

From-SVN: r204293
This commit is contained in:
Jonathan Wakely 2013-11-01 11:59:51 +00:00 committed by Jonathan Wakely
parent 7115d32a36
commit bef49287da
2 changed files with 7 additions and 1 deletions

View File

@ -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

View File

@ -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;