[Boost-bugs] [Boost C++ Libraries] #5204: compile warning in serialization/extended_type_info.hpp on visual studio: c4265

Subject: [Boost-bugs] [Boost C++ Libraries] #5204: compile warning in serialization/extended_type_info.hpp on visual studio: c4265
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-02-19 13:54:54


#5204: compile warning in serialization/extended_type_info.hpp on visual studio:
c4265
-----------------------------------------------------+----------------------
 Reporter: David Frink <david.frink@…> | Owner: ramey
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: serialization
  Version: Boost 1.44.0 | Severity: Problem
 Keywords: |
-----------------------------------------------------+----------------------
 class boost::serialization::extended_type_info generates warning
 [http://msdn.microsoft.com/en-us/library/wzxffy8c%28v=VS.90%29.aspx c4265]
 with visual studio 2005, 2008, and 2010 because the destructor is not
 virtual, even though the class has virtual functions.

 Looking at the class, I see that the warning was fixed only for gcc:
 {{{
     // account for bogus gcc warning
     #if defined(__GNUC__)
     virtual
     #endif
     ~extended_type_info();
 }}}
 I believe the fix is to always declare the destructor virtual.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/5204>
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:05 UTC