mirror of
https://github.com/catchorg/Catch2.git
synced 2024-12-22 19:33:29 +01:00
added version of Clara that has virtual destructors
(just to silence warnings - they are not actually needed)
This commit is contained in:
parent
da5964af78
commit
d81c1eb006
2
include/external/clara.hpp
vendored
2
include/external/clara.hpp
vendored
@ -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;
|
||||
|
2
third_party/clara.hpp
vendored
2
third_party/clara.hpp
vendored
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user