Commit 40571365 by Jonathan Wakely Committed by Jonathan Wakely

Remove 'return' from noreturn function

	* libsupc++/nested_exception.h (throw_with_nested): Remove return.

From-SVN: r241032
parent 164b41eb
2016-10-12 Jonathan Wakely <jwakely@redhat.com>
* libsupc++/nested_exception.h (throw_with_nested): Remove return.
* doc/xml/manual/intro.xml: Document LWG 2442 status.
* include/std/mutex [_GLIBCXX_HAVE_TLS] (__once_call_impl): Remove.
[_GLIBCXX_HAVE_TLS] (_Once_call): Declare primary template and define
......
......@@ -122,7 +122,7 @@ namespace std
"throw_with_nested argument must be CopyConstructible");
using __nest = __and_<is_class<_Up>, __bool_constant<!__is_final(_Up)>,
__not_<is_base_of<nested_exception, _Up>>>;
return std::__throw_with_nested_impl(std::forward<_Tp>(__t), __nest{});
std::__throw_with_nested_impl(std::forward<_Tp>(__t), __nest{});
}
// Determine if dynamic_cast<const nested_exception&> would be well-formed.
......
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