From d0b0f1f57c8c61f91b55adb8afe82e423a806bf3 Mon Sep 17 00:00:00 2001 From: Andrzej Rybczak Date: Sat, 27 Apr 2013 22:08:02 +0200 Subject: [PATCH] mpdpp: fix compilation with gcc-4.6 --- src/mpdpp.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mpdpp.h b/src/mpdpp.h index 6e783e69..42beaf02 100644 --- a/src/mpdpp.h +++ b/src/mpdpp.h @@ -39,6 +39,7 @@ struct ClientError: public std::exception { ClientError(mpd_error code_, std::string msg, bool clearable_) : m_code(code_), m_msg(msg), m_clearable(clearable_) { } + virtual ~ClientError() noexcept { } virtual const char *what() const noexcept { return m_msg.c_str(); } mpd_error code() const { return m_code; } @@ -54,6 +55,7 @@ struct ServerError: public std::exception { ServerError(mpd_server_error code_, std::string msg, bool clearable_) : m_code(code_), m_msg(msg), m_clearable(clearable_) { } + virtual ~ServerError() noexcept { } virtual const char *what() const noexcept { return m_msg.c_str(); } mpd_server_error code() const { return m_code; }