Browse Source

Added virtual destructors in cpptempl

tempestpy_adaptions
Matthias Volk 6 years ago
parent
commit
36601c8187
  1. 2
      resources/3rdparty/cpptemplate/cpptempl.h

2
resources/3rdparty/cpptemplate/cpptempl.h

@ -126,6 +126,7 @@ namespace cpptempl
class Data class Data
{ {
public: public:
virtual ~Data() {}
virtual bool empty() = 0 ; virtual bool empty() = 0 ;
virtual std::string getvalue(); virtual std::string getvalue();
virtual data_list& getlist(); virtual data_list& getlist();
@ -192,6 +193,7 @@ namespace cpptempl
class Token class Token
{ {
public: public:
virtual ~Token() {};
virtual TokenType gettype() = 0 ; virtual TokenType gettype() = 0 ;
virtual void gettext(std::ostream &stream, data_map &data) = 0 ; virtual void gettext(std::ostream &stream, data_map &data) = 0 ;
virtual void set_children(token_vector &children); virtual void set_children(token_vector &children);

Loading…
Cancel
Save