Browse Source

Added virtual destructors in cpptempl

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

2
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);

Loading…
Cancel
Save