diff --git a/runtime/src/RuleContext.h b/runtime/src/RuleContext.h index 9ee0d2d..fd3670a 100755 --- a/runtime/src/RuleContext.h +++ b/runtime/src/RuleContext.h @@ -126,6 +126,7 @@ namespace antlr4 { // recog null unless ParserRuleContext, in which case we use subclass toString(...) std::string toString(Recognizer *recog, RuleContext *stop); + using ParseTree::operator==; virtual std::string toString(const std::vector &ruleNames, RuleContext *stop); bool operator == (const RuleContext &other) { return this == &other; } // Simple address comparison.