Subject: [Boost-bugs] [Boost C++ Libraries] #12097: missing virtual destructor
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-03-25 14:58:31
#12097: missing virtual destructor
--------------------------------+----------------------------
Reporter: josopait@⦠| Owner: emildotchevski
Type: Bugs | Status: new
Milestone: To Be Determined | Component: exception
Version: Boost 1.60.0 | Severity: Problem
Keywords: virtual destructor |
--------------------------------+----------------------------
When compiling my program with
g++ -Wdelete-non-virtual-dtor -Wsystem-headers
I get warnings about a missing virtual destructor in boost.
I recommend making the destructor of error_info_container virtual to avoid
undefined behavior and to prevent memory leaks:
file exception/exception.hpp:
'''virtual''' ~error_info_container() throw()
{
}
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/12097> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:19 UTC