Boost logo

Boost Users :

Subject: Re: [Boost-users] [Serialization] assertion failure on exit
From: Ravi (lists_ravi_at_[hidden])
Date: 2008-12-08 15:14:23


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


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net