Top "Virtual-inheritance" questions

Virtual Inheritance is used to solve the Dreaded Diamond Problem associated with multiple inheritance in C++.

What is the VTT for a class?

Recently ran across a C++ linker error that was new to me. libfoo.so: undefined reference to `VTT for Foo' …

c++ gcc vtable virtual-inheritance vtt
Virtual tables and virtual pointers for multiple virtual inheritance and type casting

I am little confused about vptr and representation of objects in the memory, and hope you can help me understand …

c++ multiple-inheritance vtable virtual-inheritance vptr
Pure Virtual Class and Collections (vector?)

I'm working on a graphics application that is using virtual classes fairly extensively. It has: A picture class, which is …

c++ vector virtual virtual-inheritance
Memory layout of a class under multiple or virtual inheritance and the vtable(s)?

I am reading "Inside the C++ Object Model", trying to understand how multiple and virtual inheritance is achieved via the …

c++ inheritance polymorphism multiple-inheritance virtual-inheritance
Object layout in case of virtual functions and multiple inheritance

I was recently asked in an interview about object layout with virtual functions and multiple inheritance involved. I explained it …

c++ multiple-inheritance vtable virtual-inheritance memory-layout
Static Virtual functions in c++

I have a base class and a derived one and I want to change base functions while keeping them static …

c++ inheritance c++builder virtual-inheritance static-functions
Performance impact of virtual inheritance

I am considering using virtual inheritance in a real-time application. Does using virtual inheritance have a performance impact similar to …

c++ performance real-time virtual-inheritance
Order of constructor call in virtual inheritance

class A { int i; public: A() {cout<<"in A's def const\n";}; A(int k) {cout<<"…

c++ constructor virtual-inheritance
is virtual inheritance from pure abstract classes (interfaces) necessary

Why is it that in the code below the compiler complains that PureAbstractBase is an ambiguous base class of MultiplyInheritedClass? …

c++ inheritance multiple-inheritance virtual-inheritance
When virtual inheritance IS a good design?

EDIT3: Please be sure to clearly understand what I am asking before answering (there are EDIT2 and lots of comments …

c++ multiple-inheritance virtual-inheritance