StackOverflow Questions for Tag: virtual-destructor

usual me
usual me

Reputation: 8788

Protected non-virtual destructor in the base class

Score: 5

Views: 7335

Answers: 4

Read More
xxllxx666
xxllxx666

Reputation: 343

C++ Memory Layout: Questions about multiple inheritance, virtual destructors, and virtual function tables

Score: 0

Views: 100

Answers: 1

Read More
tusharfloyd
tusharfloyd

Reputation: 1972

Is there a use for making a protected destructor virtual?

Score: 16

Views: 16489

Answers: 5

Read More
towi
towi

Reputation: 22327

Does "The Rule of Zero" also apply for classes with virtual methods?

Score: 15

Views: 2235

Answers: 1

Read More
CPPL
CPPL

Reputation: 826

How is the size of a polymorphic object deduced in a delete operation?

Score: 3

Views: 192

Answers: 3

Read More
infoasker
infoasker

Reputation: 17

Destructor protected within this context c++ (issue #1)

Score: 0

Views: 329

Answers: 1

Read More
moerker
moerker

Reputation: 97

C++: Implementation of virtual destructor necessary when using inherited structs with only properties?

Score: 1

Views: 179

Answers: 2

Read More
Jeremy Friesner
Jeremy Friesner

Reputation: 73279

Is there any automated way to implement post-constructor and pre-destructor virtual method calls?

Score: 21

Views: 7107

Answers: 10

Read More
Mag Roader
Mag Roader

Reputation: 7170

When should you not use virtual destructors?

Score: 109

Views: 35729

Answers: 12

Read More
sudo rm -rf slash
sudo rm -rf slash

Reputation: 1254

How can I understand these destructors?

Score: 1

Views: 118

Answers: 3

Read More
user2623674
user2623674

Reputation: 83

Virtual destructor and memory deallocation

Score: 3

Views: 1058

Answers: 3

Read More
Ivan Shcherbakov
Ivan Shcherbakov

Reputation: 2113

Virtual destructor - who calls underlying free()?

Score: 2

Views: 241

Answers: 1

Read More
AJ Tan
AJ Tan

Reputation: 303

A misunderstanding with polymorphism and virtual destructors

Score: 1

Views: 244

Answers: 1

Read More
thedarkside ofthemoon
thedarkside ofthemoon

Reputation: 2291

C++ Error when using virtual destructor

Score: 0

Views: 2515

Answers: 3

Read More
Simon
Simon

Reputation: 818

Default to making classes either `final` or give them a virtual destructor?

Score: 12

Views: 4488

Answers: 3

Read More
Karen Baghdasaryan
Karen Baghdasaryan

Reputation: 2271

Is the destructor of a derived class virtual by-default if the base class destructor is virtual?

Score: 2

Views: 236

Answers: 1

Read More
Flusslauf
Flusslauf

Reputation: 102

Intel C++ compiler and Wnon-virtual-dtor flag gives (wrong?) warning

Score: 0

Views: 251

Answers: 1

Read More
jwd
jwd

Reputation: 11144

Why does a virtual destructor write to memory?

Score: 3

Views: 136

Answers: 1

Read More
pasha
pasha

Reputation: 2115

C++: Can the destructor be the only virtual function in a class?

Score: 1

Views: 137

Answers: 1

Read More
SoulfreezerXP
SoulfreezerXP

Reputation: 596

Deriving from an abstract base with a user-declared dtor and move-support

Score: 1

Views: 63

Answers: 1

Read More
PreviousPage 2Next