StackOverflow Questions for Tag: virtual-destructor

Osama Ahmad
Osama Ahmad

Reputation: 2096

Why the inheritance of a class with non-virtual destructor is not a good thing even if the derived class adds no members?

Score: 0

Views: 62

Answers: 0

Read More
Kevin
Kevin

Reputation: 7946

Why should I declare a virtual destructor for an abstract class in C++?

Score: 182

Views: 94898

Answers: 7

Read More
Lodle
Lodle

Reputation: 32217

When to use virtual destructors?

Score: 1935

Views: 966455

Answers: 21

Read More
Jarek C
Jarek C

Reputation: 1261

Need of explicit copy constructor if virtual destructor defined

Score: 4

Views: 182

Answers: 0

Read More
user7119460
user7119460

Reputation: 1531

Must a c++ interface obey the rule of five?

Score: 24

Views: 6161

Answers: 4

Read More
weno
weno

Reputation: 856

Base class virtual destructor - rule of five?

Score: 3

Views: 638

Answers: 1

Read More
Ghostblade
Ghostblade

Reputation: 145

Can virtual functions be inlined

Score: 9

Views: 11168

Answers: 2

Read More
Different
Different

Reputation: 43

Vector of polymorphic objects and unique_ptr

Score: 1

Views: 115

Answers: 1

Read More
Khurshid
Khurshid

Reputation: 2724

Why unique-ptr doesn't check base class to virtual destructible?

Score: 20

Views: 6613

Answers: 2

Read More
ereOn
ereOn

Reputation: 55786

Do I need to specify virtual on the sub-classes methods as well?

Score: 31

Views: 6419

Answers: 3

Read More
Aparna Chaganti
Aparna Chaganti

Reputation: 619

A missing vtable usually means the first non-inline virtual member function has no definition

Score: 24

Views: 46888

Answers: 5

Read More
Alok
Alok

Reputation: 2035

Possible memory leak without a virtual destructor?

Score: 11

Views: 5930

Answers: 4

Read More
MA19
MA19

Reputation: 580

Why does virtual destructor cause segmentaion fault when dealing with user-defined MPI types?

Score: 0

Views: 87

Answers: 0

Read More
Shishir Jessu
Shishir Jessu

Reputation: 33

Why does dynamic_cast need the base class to have a virtual destructor?

Score: 1

Views: 425

Answers: 2

Read More
Blackteahamburger
Blackteahamburger

Reputation: 215

Problem with virtual destructor when using templated operator delete

Score: 10

Views: 393

Answers: 1

Read More
Frigo
Frigo

Reputation: 1724

What is this error message about implicitly deleted virtual destructors?

Score: 17

Views: 19653

Answers: 1

Read More
R Karandikar
R Karandikar

Reputation: 51

Resolving "undefined reference" on pure virtual destructor of base class

Score: 0

Views: 244

Answers: 0

Read More
Autechre
Autechre

Reputation: 604

I don't understand C++ Primer explanation about virtual destructor

Score: -1

Views: 77

Answers: 1

Read More
Mark
Mark

Reputation: 1056

Does the standard allow an implicit virtual destructor not being implicitly defined when no instances of its class are created?

Score: 7

Views: 442

Answers: 2

Read More
Sebastian Hoffmann
Sebastian Hoffmann

Reputation: 11502

C++: Inheriting from std::map

Score: 28

Views: 19893

Answers: 5

Read More
PreviousPage 1Next