Make destructor virtual

Base classes with virtual methods should have a virtual destructor.
See Scott Meyers, Effective C++ item 7: Declare destructors virtual in
polymorphic base classes.
This commit is contained in:
Georg Baum 2015-09-11 23:04:59 +02:00
parent f3008c3079
commit acb09a3efd

View File

@ -75,6 +75,8 @@ struct EndTag
{
///
explicit EndTag(std::string tag) : tag_(tag) {}
///
virtual ~EndTag() {}
/// </tag_>
virtual docstring writeEndTag() const;
///