summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrandomdan <randomdan@localhost>2013-08-19 17:36:55 +0000
committerrandomdan <randomdan@localhost>2013-08-19 17:36:55 +0000
commit359e8950d8caee0e4c69abf664eb14ae19bb896e (patch)
tree0c1c21c8652e99ade9d500932674e21c58275fbf
parentAllow specifying a custom date format in an XML presenter declaration, used t... (diff)
downloadproject2-359e8950d8caee0e4c69abf664eb14ae19bb896e.tar.bz2
project2-359e8950d8caee0e4c69abf664eb14ae19bb896e.tar.xz
project2-359e8950d8caee0e4c69abf664eb14ae19bb896e.zip
GCC 4.6 compat fix with nothrow default destructors
-rw-r--r--project2/common/exceptions.cpp4
-rw-r--r--project2/common/exceptions.h1
2 files changed, 5 insertions, 0 deletions
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: