mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-10-31 04:07:10 +01:00 
			
		
		
		
	Explicitly default smfs when relevant to avoid Wdeprecated-copy-dtor
This commit is contained in:
		| @@ -893,11 +893,11 @@ namespace { namespace MatchersTests { | ||||
|     struct ThrowOnCopyOrMoveMatcher : Catch::Matchers::MatcherGenericBase { | ||||
|         ThrowOnCopyOrMoveMatcher() = default; | ||||
|         [[noreturn]] | ||||
|         ThrowOnCopyOrMoveMatcher(ThrowOnCopyOrMoveMatcher const&) { | ||||
|         ThrowOnCopyOrMoveMatcher(ThrowOnCopyOrMoveMatcher const&): Catch::Matchers::MatcherGenericBase() { | ||||
|             throw MatcherWasMovedOrCopied(); | ||||
|         } | ||||
|         [[noreturn]] | ||||
|         ThrowOnCopyOrMoveMatcher(ThrowOnCopyOrMoveMatcher &&) { | ||||
|         ThrowOnCopyOrMoveMatcher(ThrowOnCopyOrMoveMatcher &&): Catch::Matchers::MatcherGenericBase() { | ||||
|             throw MatcherWasMovedOrCopied(); | ||||
|         } | ||||
|         ThrowOnCopyOrMoveMatcher& operator=(ThrowOnCopyOrMoveMatcher const&) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Martin Hořeňovský
					Martin Hořeňovský