Progmasoft Git

catch3

Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.

Clonegit clone https://git.progmasoft.com/catch3

Use = delete instead of private, unimplemented copy operations

Commit
3f6c078173301280a6dd1728912abe3d4b6b08a6
Author
Martin Hořeňovský ·
Parents
0bb9f52a9957

Files · Download .tar.gz

Changes

 include/internal/catch_test_registry.hpp | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/include/internal/catch_test_registry.hpp b/include/internal/catch_test_registry.hpp
index 5be6f6d7..1f269ee9 100644
--- a/include/internal/catch_test_registry.hpp
+++ b/include/internal/catch_test_registry.hpp
@@ -71,9 +71,8 @@ struct AutoReg {
 
     ~AutoReg();
 
-private:
-    AutoReg( AutoReg const& );
-    void operator= ( AutoReg const& );
+    AutoReg( AutoReg const& ) = delete;
+    AutoReg& operator = (AutoReg const& ) = delete;
 };
 
 void registerTestCaseFunction