C++ Logo


Advanced search

Re: [std-proposals] RTTI in current_exception

From: Thiago Macieira <thiago_at_[hidden]>
Date: Tue, 10 Jan 2023 06:00:41 -0800
On Tuesday, 10 January 2023 00:38:42 PST Ville Voutilainen wrote:
> On Tue, 10 Jan 2023 at 02:23, Thiago Macieira via Std-Proposals
> <std-proposals_at_[hidden]> wrote:
> > As I said, throwing types not derived from std::exception should be
> > discouraged by recommendation.
> I'm not so convinced of that. Some applications have been designed
> with the plausible rationale that
> their domain-specific exceptions are separate from standard library
> exceptions, and are to be treated as such.

Which is why we can't deprecate. There are some uses, however much I may
disagree with them. So let them exist.

But we don't need to encourage them.

Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel DCAI Cloud Engineering

Received on 2023-01-10 14:00:45