Timeline for Implementation of pure abstract classes and interfaces
Current License: CC BY-SA 4.0
2 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jul 26, 2018 at 9:55 | comment | added | amon |
If we take an example where the subclass inherits directly from two base classes like class Derived : public FirstBase, public SecondBase then there can be two vtables. You can run g++ -fdump-class-hierarchy to see the class layout (also shown in my linked blog post). Godbolt then shows an additional pointer increment before the call in order to select the 2nd vtable.
|
|
| Jul 17, 2018 at 7:42 | history | answered | Richard Hodges | CC BY-SA 4.0 |