c++ Programming Glossary: nonvirtual
Is it possible to forbid deriving from a class at compile time? http://stackoverflow.com/questions/1000908/is-it-possible-to-forbid-deriving-from-a-class-at-compile-time class. Beside others one reason is that it has a public nonvirtual destructor. But a base class should have a destructor that is.. a destructor that is public and virtual or protected and nonvirtual. I don't know a possibility to write the value class such that..
GNU compiler warning “class has virtual functions but non-virtual destructor” http://stackoverflow.com/questions/127426/gnu-compiler-warning-class-has-virtual-functions-but-non-virtual-destructor
Destructors for C++ Interface-like classes http://stackoverflow.com/questions/2691611/destructors-for-c-interface-like-classes should be either public and virtual or protected and nonvirtual. Herb Sutter Guru of the Week #18 Virtuality share improve..
Deriving an abstract class from concrete class http://stackoverflow.com/questions/310408/deriving-an-abstract-class-from-concrete-class C Item 33 for why. Don't do it if Apple has a public nonvirtual destructor otherwise you invite undefined behaviour when your..
When to use virtual destructors? http://stackoverflow.com/questions/461203/when-to-use-virtual-destructors you can make the base class destuctor protected and nonvirtual by doing so the compiler won't let you call delete on a base..
Not necessary to export class with only virtual/inline functions? http://stackoverflow.com/questions/549983/not-necessary-to-export-class-with-only-virtual-inline-functions to export the class declaration if one wishes to call nonvirtual member functions c winapi dll share improve this question..
Virtual destructor and undefined behavior http://stackoverflow.com/questions/8599225/virtual-destructor-and-undefined-behavior should be either public and virtual or protected and nonvirtual Can this be classified as an undefined behavior we are aware..
|