C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Extensible vtables -- Ensuring ABI isn't broken

From: Frederick Virchanza Gotham <cauldwell.thomas_at_[hidden]>
Date: Tue, 20 Feb 2024 23:05:38 +0000
On Sun, Feb 18, 2024 at 6:14 PM Thiago Macieira wrote:
>
> On Saturday, 17 February 2024 14:58:12 PST Frederick Virchanza Gotham wrote:
> > I wonder could we somehow mark a class as 'extensible' to indicate
> > that the vtables should be laid out in such as way as to allow for the
> > extending of classes in the future? For example, the vtable for
> > IKeyboard could instead be:
>
> Yes, but it's an ABI change, unless it's an opt-in.


I'm trying to come up with ways of providing this new feature and
still making it available to pre-existing class hierarchies, see the
attached PDF for my latest try.

Received on 2024-02-20 23:06:45