struct with virtual functions should have virtual destructor

This commit is contained in:
Stephan Witt 2014-04-30 23:12:41 +02:00
parent 8ed7f52584
commit 43d75a0796

View File

@ -45,7 +45,7 @@ struct StartTag
bool keepempty = false)
: tag_(tag), attr_(attr), keepempty_(keepempty) {}
///
~StartTag() {}
virtual ~StartTag() {}
/// <tag_ attr_>
virtual docstring writeTag() const;
/// </tag_>