C++ Logo


Advanced search

Re: [std-proposals] RTTI in current_exception

From: Edward Catmur <ecatmur_at_[hidden]>
Date: Mon, 9 Jan 2023 09:25:56 +0000
A decent start. You should reference existing practice
e.g. __cxa_exception_type in libstdc++.

On Mon, 9 Jan 2023, 09:21 Frederick Virchanza Gotham via Std-Proposals, <
std-proposals_at_[hidden]> wrote:

> I've written a short paper advocating for the availability of RTTI
> inside the body of a 'catch(...)', I've attached it to this email and
> you can also download it from:
> http://www.virjacode.com/download/RTTI_current_exception_draft1.pdf
> Here's an excerpt:
> "This proposed feature would not be needed if we could only throw
> objects derived from ‘std::exception’, however since we can throw
> any type (for example int, std::complex<long>), it is fitting that we
> should be able to get the RTTI inside ‘catch (...)’, otherwise the C++26
> standard should deprecate the throwing of an object which is not derived
> from ‘std::exception’."
> --
> Std-Proposals mailing list
> Std-Proposals_at_[hidden]
> https://lists.isocpp.org/mailman/listinfo.cgi/std-proposals

Received on 2023-01-09 09:26:11