[cpp-threads] Issue 1369 --- thread safety of std::rethrow_exception

Jonathan Wakely cxx at kayari.org
Fri Nov 12 12:52:21 GMT 2010


On 12 November 2010 11:11, Anthony Williams wrote:
>
> A quick summary of the existing practice I know of:
>
> The exception_ptr implementation that ships with MSVC2010 copies the
> exception; the rethrow_exception implementation that ships with gcc in
> -std=c++0x mode doesn't. gcc in -std=c++98 mode doesn't support
> exception_ptr, except via an add-on library.

Actually exception_ptr is available with gcc -std=c++98, you just have
to include <exception_ptr.h> because that's only included by
<exception> when using -std=c++0x



More information about the cpp-threads mailing list