Commit 71f257f7 by Jonathan Wakely Committed by Jonathan Wakely

PR libstdc++/80493 fix invalid exception specification

	PR libstdc++/80493
	* include/experimental/optional (optional::swap): Fix exception
	specification.

From-SVN: r247093
parent 24c40f9a
2017-04-24 Jonathan Wakely <jwakely@redhat.com>
PR libstdc++/80493
* include/experimental/optional (optional::swap): Fix exception
specification.
2017-04-21 Jonathan Wakely <jwakely@redhat.com>
PR libstdc++/80316
......
......@@ -690,7 +690,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
void
swap(optional& __other)
noexcept(is_nothrow_move_constructible<_Tp>()
&& noexcept(swap(declval<_Tp&>(), declval<_Tp&>())))
&& __is_nothrow_swappable<_Tp>::value)
{
using std::swap;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment