Simplify std::rethrow_if_nested definition
authorJonathan Wakely <jwakely@redhat.com>
Tue, 11 Oct 2016 10:33:36 +0000 (11:33 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Tue, 11 Oct 2016 10:33:36 +0000 (11:33 +0100)
commit0470fad0d6c2b993e6f9906dc2d17303944dcc14
treef4a14a82455e28eafab455288f29438bc8312154
parentbf1de1ac983d607f5097ed1a6b004e50eabb3dde
Simplify std::rethrow_if_nested definition

* doc/xml/manual/intro.xml: Document LWG 2484 status.
* libsupc++/nested_exception.h (_Throw_with_nested_impl)
(_Throw_with_nested_helper): Remove.
(__throw_with_nested_impl): New overloaded functions to implement
throw_with_nested logic.
(throw_with_nested): Call __throw_with_nested_impl.
(_Rethrow_if_nested_impl): Remove
(__rethrow_if_nested_impl): New overloaded functions to implement
rethrow_if_nested logic.
(rethrow_if_nested): Call __rethrow_if_nested_impl.
* testsuite/18_support/nested_exception/rethrow_if_nested.cc: Test
problem cases from LWG 2484.

From-SVN: r240983
libstdc++-v3/ChangeLog
libstdc++-v3/doc/xml/manual/intro.xml
libstdc++-v3/libsupc++/nested_exception.h
libstdc++-v3/testsuite/18_support/nested_exception/rethrow_if_nested.cc