Boost logo

Boost :

Subject: Re: [boost] [exception] gcc 4.7 non-virtual destructor warning
From: Emil Dotchevski (emildotchevski_at_[hidden])
Date: 2012-06-20 02:27:29


On Tue, Jun 19, 2012 at 10:40 PM, Daniel Larimer <dlarimer_at_[hidden]> wrote:

> /usr/local/include/boost/checked_delete.hpp:34:5: warning: deleting object
> of polymorphic class type
> 'boost::error_info<boost::tag_original_exception_type, const
> std::type_info*>' which has non-virtual destructor might cause undefined
> behaviour [-Wdelete-non-virtual-dtor]
>

Please check with the current trunk revision, I've made the destructor
virtual as a workaround for this warning. It'll get merged into the release
branch soon, with a few other minor changes.

Emil Dotchevski
Reverge Studios, Inc.
http://www.revergestudios.com/reblog/index.php?n=ReCode


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk