Re: [Boost-bugs] [Boost C++ Libraries] #4200: Virtual functions, non-virtual destructor

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #4200: Virtual functions, non-virtual destructor
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-05-29 02:53:05


#4200: Virtual functions, non-virtual destructor
--------------------------------+-------------------------------------------
  Reporter: klimkin@… | Owner: emildotchevski
      Type: Bugs | Status: reopened
 Milestone: To Be Determined | Component: exception
   Version: Boost 1.48.0 | Severity: Problem
Resolution: | Keywords:
--------------------------------+-------------------------------------------

Comment (by anonymous):

 source code(a.cc):
 {{{
 #include <boost/exception/all.hpp>

 typedef boost::error_info<struct my_info_tag, int> my_info;

 int main()
 {
         my_info(0);
 }
 }}}

 compiler: gcc-3.4.6

 command line: g++ -Wall a.cc

 compiler output:
 {{{
 /usr/local/include/boost/exception/detail/error_info_impl.hpp: In
 instantiation of `boost::error_info<my_info_tag, int>':
 a.cc:7: instantiated from here
 /usr/local/include/boost/exception/detail/error_info_impl.hpp:43: warning:
 `class boost::error_info<my_info_tag, int>' has virtual functions but non-
 virtual destructor
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/4200#comment:13>
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:09 UTC