If a class has *any* virtual functions, it should have a virtual
destructor because the assumption is that you will use the class
polymorphically and you might delete the class with a pointer to the
base class.
Nate
On Sun, Jan 25, 2009 at 7:52 PM, Ali Saidi sa...@umich.edu wrote:
Gabe,
I
I'll just make the destructor virtual then. I can't imagine that would
break anything.
Gabe
nathan binkert wrote:
If a class has *any* virtual functions, it should have a virtual
destructor because the assumption is that you will use the class
polymorphically and you might delete the class