[cxx-abi-dev] Deleted virtual functions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cxx-abi-dev] Deleted virtual functions
- To: cxx-abi-dev@xxxxxxxxxxxxxxxx
- Subject: [cxx-abi-dev] Deleted virtual functions
- From: David Vandevoorde <daveed@xxxxxxx>
- Date: Tue, 26 May 2009 13:57:34 -0400
I think the ABI should specify what should happen with deleted virtual
functions:
struct B {
virtual void f() = delete;
};
struct D: B {
virtual void f() = delete;
};
Our preference would be for such functions to take up a slot in the
virtual function table, and have that slot point to a new aborting ABI
function __cxx_deleted_virtual (much like __cxa_pure_virtual). This
approach allows changing a virtual function from deleted to non-
deleted without breaking the vtable layout.
Daveed