From ed636dd3627695f2cb6b2147d138cc757084188a Mon Sep 17 00:00:00 2001 From: Jens Maurer Date: Sat, 20 Jan 2001 00:09:14 +0000 Subject: [PATCH] bugfix: added destructor definition with empty exception specification [SVN r8651] --- test.hpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test.hpp b/test.hpp index ba183ef..002712e 100644 --- a/test.hpp +++ b/test.hpp @@ -40,6 +40,13 @@ namespace test // failure exception used to indicate checked test failures { } + // std::~string has no exception-specification (could throw anything), + // but we need to be compatible with std::~exception's empty one + // see std::15.4p13 and std::15.4p3 + ~failure() throw() + { + } + public: // usage virtual const char * what() const throw()