From 6434b4f0c8910cfeb1372d56827a188fe188f3f5 Mon Sep 17 00:00:00 2001 From: jbeder Date: Thu, 1 Jan 2009 23:59:37 +0000 Subject: [PATCH] Re-added the throw() specification to ~Exception(), and also to ~TypedKeyNotFound(); I suppose this'll fix the gcc compiler error. --- include/exceptions.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/exceptions.h b/include/exceptions.h index 41603fe..ce00bba 100644 --- a/include/exceptions.h +++ b/include/exceptions.h @@ -48,7 +48,7 @@ namespace YAML public: Exception(int line_, int column_, const std::string& msg_) : line(line_), column(column_), msg(msg_) {} - virtual ~Exception() {} + virtual ~Exception() throw() {} int line, column; std::string msg; @@ -84,6 +84,7 @@ namespace YAML public: TypedKeyNotFound(int line_, int column_, const T& key_) : KeyNotFound(line_, column_), key(key_) {} + ~TypedKeyNotFound() throw() {} T key; };