From 69f4669ccca584a64a69e2d9c53a05d847e8b403 Mon Sep 17 00:00:00 2001 From: Niels Werensteijn Date: Mon, 3 Mar 2014 17:29:50 +0100 Subject: [PATCH] Three fixes to get this lib compiled on linux g++ 4.7.3 Added include to amqpcpp.h Removed virtual destructors for exception.h and protocolexception.h. They were causing compile issues because of (no) noexcept specification. They were empty implementations anyway, and the ~std::exception was already virtual, so they were not needed anyway. --- amqpcpp.h | 1 + src/exception.h | 6 ------ src/protocolexception.h | 5 ----- 3 files changed, 1 insertion(+), 11 deletions(-) diff --git a/amqpcpp.h b/amqpcpp.h index 0708362..3ae5c67 100644 --- a/amqpcpp.h +++ b/amqpcpp.h @@ -16,6 +16,7 @@ #include #include #include +#include // base C include files #include diff --git a/src/exception.h b/src/exception.h index 17d81f7..e4bb35a 100644 --- a/src/exception.h +++ b/src/exception.h @@ -22,12 +22,6 @@ protected: * @param what */ explicit Exception(const std::string &what) : runtime_error(what) {} - -public: - /** - * Destructor - */ - virtual ~Exception() {} }; /** diff --git a/src/protocolexception.h b/src/protocolexception.h index 9973f0b..7f829bc 100644 --- a/src/protocolexception.h +++ b/src/protocolexception.h @@ -23,11 +23,6 @@ public: * @param what */ explicit ProtocolException(const std::string &what) : Exception(what) {} - - /** - * Destructor - */ - virtual ~ProtocolException() {} }; /**