From d9bb711c8b040ef24c9f9366b5c4c97033925c00 Mon Sep 17 00:00:00 2001 From: randomdan Date: Mon, 19 Aug 2013 17:36:55 +0000 Subject: GCC 4.6 compat fix with nothrow default destructors --- project2/common/exceptions.cpp | 4 ++++ project2/common/exceptions.h | 1 + 2 files changed, 5 insertions(+) diff --git a/project2/common/exceptions.cpp b/project2/common/exceptions.cpp index 29b4fa0..1140e96 100644 --- a/project2/common/exceptions.cpp +++ b/project2/common/exceptions.cpp @@ -51,6 +51,10 @@ two_part_error::two_part_error(const std::string & w1, const std::string & w2) : { } +two_part_error::~two_part_error() throw() +{ +} + std::string two_part_error::msg() const throw() { diff --git a/project2/common/exceptions.h b/project2/common/exceptions.h index 123afc9..1051220 100644 --- a/project2/common/exceptions.h +++ b/project2/common/exceptions.h @@ -35,6 +35,7 @@ class syscall_error : public MsgBufferedException { class two_part_error : public MsgBufferedException { public: two_part_error(const std::string & what1, const std::string & what2); + ~two_part_error() throw(); protected: std::string msg() const throw(); private: -- cgit v1.2.3