
8 Dec
2008
8 Dec
'08
8:14 p.m.
On Friday 05 December 2008 16:39:33 Kenny Riddile wrote:
I'm getting the following assertion failure on exit when instantiating certain serializable classes:
[snip]
class Serializable { public: virtual ~Serializable() = 0;
[snip]
};
Do you have the same problem if your destructor is not pure virtual? As a side note, why is this destructor pure virtual, rather than just be virtual? Are you trying to make your class not be instantiable directly, but only be instantiable from a derived class? In that case, simply make your constructors protected. Regards, Ravi