Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/src/catch2/internal
diff options
context:
space:
mode:
authorMartin Hořeňovský2020-05-11 20:15:58 +0200
committerMartin Hořeňovský2020-05-12 23:56:34 +0200
commit03ef6b9f9af9c78f83607a90980a2b90118d501d (patch)
tree3b854eb734bf5b5efcf946ee9bcbaf4f1d7740c1 /src/catch2/internal
parent579dcd1a7663684b21495b4f5a61936e884b22de (diff)
downloadcatch3-03ef6b9f9af9c78f83607a90980a2b90118d501d.tar.gz
Explicitly default smfs when relevant to avoid Wdeprecated-copy-dtor
Diffstat (limited to 'src/catch2/internal')
-rw-r--r--src/catch2/internal/catch_decomposer.hpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/catch2/internal/catch_decomposer.hpp b/src/catch2/internal/catch_decomposer.hpp
index dc1c2d6b..94995bd2 100644
--- a/src/catch2/internal/catch_decomposer.hpp
+++ b/src/catch2/internal/catch_decomposer.hpp
@@ -43,9 +43,13 @@ namespace Catch {
m_result( result )
{}
+ ITransientExpression() = default;
+ ITransientExpression(ITransientExpression const&) = default;
+ ITransientExpression& operator=(ITransientExpression const&) = default;
+
// We don't actually need a virtual destructor, but many static analysers
// complain if it's not here :-(
- virtual ~ITransientExpression();
+ virtual ~ITransientExpression(); // = default;
bool m_isBinaryExpression;
bool m_result;