diff options
| author | Martin Hořeňovský | 2020-05-11 20:15:58 +0200 |
|---|---|---|
| committer | Martin Hořeňovský | 2020-05-12 23:56:34 +0200 |
| commit | 03ef6b9f9af9c78f83607a90980a2b90118d501d (patch) | |
| tree | 3b854eb734bf5b5efcf946ee9bcbaf4f1d7740c1 /tests/SelfTest/UsageTests/Matchers.tests.cpp | |
| parent | 579dcd1a7663684b21495b4f5a61936e884b22de (diff) | |
| download | catch3-03ef6b9f9af9c78f83607a90980a2b90118d501d.tar.gz | |
Explicitly default smfs when relevant to avoid Wdeprecated-copy-dtor
Diffstat (limited to 'tests/SelfTest/UsageTests/Matchers.tests.cpp')
| -rw-r--r-- | tests/SelfTest/UsageTests/Matchers.tests.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/SelfTest/UsageTests/Matchers.tests.cpp b/tests/SelfTest/UsageTests/Matchers.tests.cpp index 4736b563..f8c9ed1d 100644 --- a/tests/SelfTest/UsageTests/Matchers.tests.cpp +++ b/tests/SelfTest/UsageTests/Matchers.tests.cpp @@ -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&) { |