Base classes should have the destructor virtual. Otherwise one can run into problems destructing the objects due to slicing problems.
Read this article: http://blogs.msdn.com/oldnewthing/ar...07/127826.aspx.
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 7 of 7
Thread: Class Destructor warningThreaded View
|
Click Here to Expand Forum to Full Width |