Subject: [Boost-bugs] [Boost C++ Libraries] #7264: xml_archive_exceptions - looser throw specifier of virtual destructors
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-08-22 23:57:15
#7264: xml_archive_exceptions - looser throw specifier of virtual destructors
---------------------------------+------------------------------------------
Reporter: steve.lemay@⦠| Owner: emildotchevski
Type: Bugs | Status: new
Milestone: To Be Determined | Component: exception
Version: Boost 1.51.0 | Severity: Problem
Keywords: gcc 4.7.1 C++11 |
---------------------------------+------------------------------------------
Several related virtual destructors for xml exceptions have looser throw
specifications... base classes uses throw(), derived classes do not
provide similar specification. See attachment.
Example.
qcc.compile.c++
D:\boostBuild_QCC_1_51_0\boost\bin.v2\libs\serialization\build\qcc\release
\link-static\target-os-qnxnto\threadapi-pthread\threading-
multi\xml_woarchive.o
In file included from ./boost/archive/impl/basic_xml_oarchive.ipp:22:0,
from libs\serialization\src\xml_woarchive.cpp:22:
./boost/archive/xml_archive_exception.hpp:35:44: error: looser throw
specifier for 'virtual
boost::archive::xml_archive_exception::~xml_archive_exception()'
In file included from ./boost/archive/basic_text_oprimitive.hpp:54:0,
from ./boost/archive/xml_woarchive.hpp:34,
from libs\serialization\src\xml_woarchive.cpp:17:
./boost/archive/archive_exception.hpp:86:5: error: overriding 'virtual
boost::archive::archive_exception::~archive_exception() throw ()'
cc: d:/qnxsdk/qnxsdk6.5-001/host/win32/x86/usr/lib/gcc/i486-pc-nto-
qnx6.5.0/4.7.1/cc1plus caught signal 1
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/7264> 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:10 UTC