added version of Clara that has virtual destructors

(just to silence warnings - they are not actually needed)
This commit is contained in:
philsquared 2017-06-20 22:35:35 +01:00
parent da5964af78
commit d81c1eb006
2 changed files with 4 additions and 0 deletions

View File

@ -480,6 +480,7 @@ namespace detail {
protected:
ResultBase(Type type) : m_type(type) {}
virtual ~ResultBase() = default;
virtual void enforceOk() const = 0;
@ -782,6 +783,7 @@ namespace detail {
class ParserBase {
public:
virtual ~ParserBase() = default;
virtual auto validate() const -> Result { return Result::ok(); }
virtual auto parse( std::string const& exeName, TokenStream const &tokens) const -> InternalParseResult = 0;

View File

@ -477,6 +477,7 @@ namespace detail {
protected:
ResultBase(Type type) : m_type(type) {}
virtual ~ResultBase() = default;
virtual void enforceOk() const = 0;
@ -779,6 +780,7 @@ namespace detail {
class ParserBase {
public:
virtual ~ParserBase() = default;
virtual auto validate() const -> Result { return Result::ok(); }
virtual auto parse( std::string const& exeName, TokenStream const &tokens) const -> InternalParseResult = 0;