StackOverflow Questions for Tag: virtual-inheritance

M. Saamin Rahman
M. Saamin Rahman

Reputation: 95

Why the keyword "virtual" is used in classes on whose it has no effect?

Score: 5

Views: 176

Answers: 2

Read More
Eran
Eran

Reputation: 22030

Why can't static_cast be used to down-cast when virtual inheritance is involved?

Score: 54

Views: 25688

Answers: 6

Read More
Fedor
Fedor

Reputation: 21347

Copying virtual base class results in losing shared_ptr owned object

Score: 16

Views: 525

Answers: 1

Read More
Dominic Farolino
Dominic Farolino

Reputation: 1383

C++ Virtual Inheritance Memory Layout

Score: 9

Views: 5565

Answers: 1

Read More
Diaos wang
Diaos wang

Reputation: 9

What is the difference between (this->*&A::main)(); and this->A::main(); in C++ when dealing with virtual functions?

Score: -1

Views: 104

Answers: 2

Read More
gh_shark
gh_shark

Reputation: 13

c++ static_cast to virtual base in runtime

Score: 1

Views: 84

Answers: 1

Read More
Charles
Charles

Reputation: 41

Breaking one leg of diamond inheritance problem: alternatives?

Score: 1

Views: 96

Answers: 1

Read More
aackmann
aackmann

Reputation: 1

Where to place virtual base class copy assignment operator in derived class copy assignment operator?

Score: 0

Views: 62

Answers: 0

Read More
jazaman
jazaman

Reputation: 1019

Virtual Inheritance: Error: no unique final overrider

Score: 24

Views: 10440

Answers: 3

Read More
Erwin Raupach
Erwin Raupach

Reputation: 33

How can I inherit from two classes with the same non-virtual grandparent classes?

Score: 2

Views: 70

Answers: 1

Read More
blonded04
blonded04

Reputation: 513

When should constructor of virtual base class be called?

Score: 1

Views: 148

Answers: 2

Read More
Rajeshwar
Rajeshwar

Reputation: 11681

Virtual Inheritance - Diamond Issue - What really happens

Score: 0

Views: 272

Answers: 1

Read More
Mirek
Mirek

Reputation: 31

If I inherit some attributes from father's pure virtual class and want to implement them in main, do I have to redefine them in the inherited class?

Score: 0

Views: 72

Answers: 0

Read More
Nenavizhu_Sumerki
Nenavizhu_Sumerki

Reputation: 1

passing a variable and its value from one class to another through inheritance c#

Score: 0

Views: 44

Answers: 0

Read More
josh chatham
josh chatham

Reputation: 23

Why do shared_ptr and unique_ptr have different behavior when dtors are not virtual?

Score: 0

Views: 112

Answers: 1

Read More
Mad Physicist
Mad Physicist

Reputation: 114578

Mixing Templates, Multiple Inheritance, and non-Default Constructor

Score: 2

Views: 72

Answers: 3

Read More
mopalinski
mopalinski

Reputation: 23

virtual multiple inheritance constructor

Score: 0

Views: 81

Answers: 2

Read More
Riellia Hionmet
Riellia Hionmet

Reputation: 33

Create diferent childs struct that expand a function of a parent struct, and pass the child object in another function. C++

Score: 0

Views: 47

Answers: 0

Read More
SuperElectric
SuperElectric

Reputation: 18914

Should I almost always use virtual inheritance?

Score: 36

Views: 8825

Answers: 2

Read More
haojie zhou
haojie zhou

Reputation: 59

Why are the sizes of struct b and struct d different?

Score: 3

Views: 117

Answers: 1

Read More
PreviousPage 1Next