diff --git a/tool/resources/org/antlr/v4/tool/templates/codegen/Cpp/Cpp.stg b/tool/resources/org/antlr/v4/tool/templates/codegen/Cpp/Cpp.stg index 4c367dda5..a86f94eaf 100644 --- a/tool/resources/org/antlr/v4/tool/templates/codegen/Cpp/Cpp.stg +++ b/tool/resources/org/antlr/v4/tool/templates/codegen/Cpp/Cpp.stg @@ -63,7 +63,7 @@ public: }; - (antlr4::CharStream *input); + explicit (antlr4::CharStream *input); ~(); @@ -290,7 +290,7 @@ public: }; - (antlr4::TokenStream *input); + explicit (antlr4::TokenStream *input); ~(); virtual std::string getGrammarFileName() const override;