class MyVisitor : public MyBaseVisitor<int>
public class MyOwnVisitor extends MyBaseVisitor<ST> implements MyVisitor<ST>
Can anyone give a short example how this is intended to work in C++?
we trying to use vistors with the new cpp runtime target. Our custom vistor class is defined like this:class ShipItWinnerVisitor : public TinyPL90CBaseVisitor<int>
Visual Studio 2015 produces the following error:
2>antlr-parser\runtime\src\tree\abstractparsetreevisitor.h(70): error C2664: 'bool antlr4::tree::AbstractParseTreeVisitor<T>::shouldVisitNextChild(antlr4::tree::RuleNode *,T)': cannot convert argument 2 from 'int *' to 'int'2> with2> [2> T=int2> ]2> antlr-parser\runtime\src\tree\abstractparsetreevisitor.h(70): note: There is no context in which this conversion is possible2> antlr-parser\runtime\src\tree\abstractparsetreevisitor.h(66): note: while compiling class template member function 'int *antlr4::tree::AbstractParseTreeVisitor<T>::visitChildren(antlr4::tree::RuleNode *)'2> with2> [2> T=int2> ]2> antlr-parser\demo\generated\tinypl90cbasevisitor.h(18): note: see reference to class template instantiation 'antlr4::tree::AbstractParseTreeVisitor<T>' being compiled2> with2> [2> T=int2> ]
2> antlr-parser\demo\windows\antlr4-cpp-demo\main.cpp(31): note: see reference to class template instantiation 'TinyPL90CBaseVisitor<int>' being compiled2>