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
commitd9bb711c8b040ef24c9f9366b5c4c97033925c00 (patch)
tree0c1c21c8652e99ade9d500932674e21c58275fbf
parentAllow specifying a custom date format in an XML presenter declaration, used t... (diff)
downloadproject2-d9bb711c8b040ef24c9f9366b5c4c97033925c00.tar.bz2
project2-d9bb711c8b040ef24c9f9366b5c4c97033925c00.tar.xz
project2-d9bb711c8b040ef24c9f9366b5c4c97033925c00.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: