Re: [Boost-bugs] [Boost C++ Libraries] #6824: warning: delete called on boost::error_info... that has virtual functions but non-virtual destructor

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #6824: warning: delete called on boost::error_info... that has virtual functions but non-virtual destructor
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-06-06 20:10:25


#6824: warning: delete called on boost::error_info... that has virtual functions
but non-virtual destructor
--------------------------------------------+----------------------------
  Reporter: Richard Powell <rmpowell77@…> | Owner: emildotchevski
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: exception
   Version: Boost 1.49.0 | Severity: Problem
Resolution: | Keywords:
--------------------------------------------+----------------------------

Comment (by anonymous):

 I'm using GCC 4.8. and this is the warning I'm getting:

 .../boost/checked_delete.hpp:34:5: warning: deleting object of polymorphic
 class type 'safe::SetFeatureUseOp' which has non-virtual destructor might
 cause undefined behaviour [-Wdelete-non-virtual-dtor]
      delete x;
      ^

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/6824#comment:8>
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:16 UTC