Date: Thu, 29 Feb 2024 10:44:30 +0000
On Wed, Feb 28, 2024 at 4:08 PM Frederick Virchanza Gotham wrote:
>
> When it comes to
> the GNU g++ compiler, a quick web search shows me that people have
> been able to do the same thing by providing an implementation of
> '__cxa_throw'.
I'm really surprised that it only took an hour to implement
'std::set_throw' on GNU g++, LLVM clang and Intel ICX:
https://godbolt.org/z/EE6eTEWcG
Tested and working. If your 'throw handler' throws an exception,
'std::terminate' is called.
>
> When it comes to
> the GNU g++ compiler, a quick web search shows me that people have
> been able to do the same thing by providing an implementation of
> '__cxa_throw'.
I'm really surprised that it only took an hour to implement
'std::set_throw' on GNU g++, LLVM clang and Intel ICX:
https://godbolt.org/z/EE6eTEWcG
Tested and working. If your 'throw handler' throws an exception,
'std::terminate' is called.
Received on 2024-02-29 10:44:42