C++ Logo

std-proposals

Advanced search

Re: [std-proposals] template catch block

From: Andrey Semashev <andrey.semashev_at_[hidden]>
Date: Sat, 23 Sep 2023 19:07:18 +0300
On September 23, 2023 3:09:38 PM Frederick Virchanza Gotham via
Std-Proposals <std-proposals_at_[hidden]> wrote:

> On Saturday, September 23, 2023, Andrey Semashev wrote:
>
>>
>> This is insane, you have no idea what you're talking about. No gigs of RAM
>> will save you in a moderately sized project with thousands of types, let
>> alone something like Chromium. Don't even get me started about how the
>> compiler is supposed to know every type in the program.
>
>
> It only needs to know every type encountered so far in the translation unit.

No, it needs to be able to catch any type, including those defined in other
TUs. Because that's how exceptions currently work.

Received on 2023-09-23 16:07:23