mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-10-31 12:17:11 +01:00 
			
		
		
		
	added version of Clara that has virtual destructors
(just to silence warnings - they are not actually needed)
This commit is contained in:
		
							
								
								
									
										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; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 philsquared
					philsquared