From 9148159b989669f0007f7e5add8c9825d484515c Mon Sep 17 00:00:00 2001 From: Jens Maurer Date: Sat, 14 Oct 2000 22:56:18 +0000 Subject: [PATCH] add empty throw specification to destructors for classes derived from std::exception [SVN r7940] --- include/boost/pattern_except.hpp | 4 ++-- src/regex.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/boost/pattern_except.hpp b/include/boost/pattern_except.hpp index 0ac760d7..31e5727a 100644 --- a/include/boost/pattern_except.hpp +++ b/include/boost/pattern_except.hpp @@ -39,14 +39,14 @@ class BOOST_RE_IX_DECL bad_pattern : public std::runtime_error { public: explicit bad_pattern(const std::string& s) : std::runtime_error(s){}; - ~bad_pattern(); + ~bad_pattern() throw(); }; class BOOST_RE_IX_DECL bad_expression : public bad_pattern { public: explicit bad_expression(const std::string& s) : bad_pattern(s) {} - ~bad_expression(); + ~bad_expression() throw(); }; diff --git a/src/regex.cpp b/src/regex.cpp index 01c4ad3f..7a1f8321 100644 --- a/src/regex.cpp +++ b/src/regex.cpp @@ -32,8 +32,8 @@ namespace boost{ // that dll builds contain the Virtual table for these // types - this ensures that exceptions can be thrown // from the dll and caught in an exe. -bad_pattern::~bad_pattern(){} -bad_expression::~bad_expression(){} +bad_pattern::~bad_pattern() throw() {} +bad_expression::~bad_expression() throw() {} regbase::regbase() : _flags(regbase::failbit){}