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: Sun, 18 Feb 2024 00:28:12 +0000
On Sat, Feb 17, 2024 at 11:15 PM Frederick Virchanza Gotham wrote:
>
> Never mind, that was a half-baked idea and doesn't account for how
> you'd convert an IKeyboard* to an IDevice*.
>
> I'll think it out a bit further and post again.


I've put more thought into the layout of the vtables -- see attached PDF file.

This revised layout will allow you to add more virtual methods to
IDevice without breaking the ABI for any derived classes such as
IKeyboard.

Received on 2024-02-18 00:28:25