Commit 40da5156 authored by Simon Morlat's avatar Simon Morlat

Add missing virtual destructor to ParserHandlerBase.

parent 2d244ab5
......@@ -82,6 +82,7 @@ class ParserHandlerBase : public std::enable_shared_from_this<ParserHandlerBase<
friend class HandlerContext<_parserElementT>;
virtual ~ParserHandlerBase()=default;
virtual _parserElementT invoke(const std::string &input, size_t begin, size_t count)=0;
std::shared_ptr<HandlerContext<_parserElementT>> createContext();
......@@ -105,7 +106,6 @@ private:
template <typename _derivedParserElementT, typename _parserElementT>
class ParserHandler : public ParserHandlerBase<_parserElementT>{
virtual ~ParserHandler() {}
ParserHandler(const Parser<_parserElementT> &parser, const std::string &rulename, const std::function<_derivedParserElementT ()> &create)
: ParserHandlerBase<_parserElementT>(parser, rulename), mHandlerCreateFunc(create){}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment