[cxx-abi-dev] Deleted virtual functions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cxx-abi-dev] Deleted virtual functions



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