forked from jasder/antlr
added virtual dtor to polymorphic class template ParseTreeProperty
This commit is contained in:
parent
8268fdd957
commit
7fdec95d15
|
@ -29,6 +29,7 @@ namespace tree {
|
|||
template<typename V>
|
||||
class ANTLR4CPP_PUBLIC ParseTreeProperty {
|
||||
public:
|
||||
virtual ~ParseTreeProperty() {}
|
||||
virtual V get(ParseTree *node) {
|
||||
return _annotations[node];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue