From 80dc9f44ed047772d5491f9a1eddd9db80755d67 Mon Sep 17 00:00:00 2001 From: Joakim Karlsson Date: Sun, 11 Aug 2013 20:45:03 +0200 Subject: [PATCH] fix(compile): fix compiler errors on gcc < 4.7 --- bandit/assertion_exception.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bandit/assertion_exception.h b/bandit/assertion_exception.h index 2aec56d..8644016 100644 --- a/bandit/assertion_exception.h +++ b/bandit/assertion_exception.h @@ -14,6 +14,12 @@ namespace bandit { namespace detail { : std::runtime_error(message), line_number_(0) {} + // + // To make gcc < 4.7 happy. + // + virtual ~assertion_exception() throw() + {} + const std::string& file_name() const { return file_name_;