diff --git a/resources/3rdparty/cpptemplate/cpptempl.h b/resources/3rdparty/cpptemplate/cpptempl.h
index b6a19d293..28c289a10 100755
--- a/resources/3rdparty/cpptemplate/cpptempl.h
+++ b/resources/3rdparty/cpptemplate/cpptempl.h
@@ -126,6 +126,7 @@ namespace cpptempl
 	class Data
 	{
 	public:
+		virtual ~Data() {}
 		virtual bool empty() = 0 ;
 		virtual std::string getvalue();
 		virtual data_list& getlist();
@@ -192,6 +193,7 @@ namespace cpptempl
 	class Token
 	{
 	public:
+		virtual ~Token() {};
 		virtual TokenType gettype() = 0 ;
 		virtual void gettext(std::ostream &stream, data_map &data) = 0 ;
 		virtual void set_children(token_vector &children);