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

Ptr op= takes const ref (fixes: #115)

Commit
deb3ced619ccf6e36c1fcdca567a870cac26819a
Author
Phil Nash ·
Parents
62b7039a7bd4

Files · Download .tar.gz

Changes

 include/internal/catch_ptr.hpp | 2 +-
 single_include/catch.hpp       | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/include/internal/catch_ptr.hpp b/include/internal/catch_ptr.hpp
index 2b8caf6f..a688bc4f 100644
--- a/include/internal/catch_ptr.hpp
+++ b/include/internal/catch_ptr.hpp
@@ -36,7 +36,7 @@ namespace Catch {
             swap( temp );
             return *this;
         }
-        Ptr& operator = ( Ptr& other ){
+        Ptr& operator = ( const Ptr& other ){
             Ptr temp( other );
             swap( temp );
             return *this;
diff --git a/single_include/catch.hpp b/single_include/catch.hpp
index 57fd0c10..c7905ef3 100644
--- a/single_include/catch.hpp
+++ b/single_include/catch.hpp
@@ -1,5 +1,5 @@
 /*
- *  Generated: 2012-08-31 18:45:38.119837
+ *  Generated: 2012-08-31 18:50:03.965736
  *  ----------------------------------------------------------
  *  This file has been merged from multiple headers. Please don't edit it directly
  *  Copyright (c) 2012 Two Blue Cubes Ltd. All rights reserved.
@@ -293,7 +293,7 @@ namespace Catch {
             swap( temp );
             return *this;
         }
-        Ptr& operator = ( Ptr& other ){
+        Ptr& operator = ( const Ptr& other ){
             Ptr temp( other );
             swap( temp );
             return *this;