From deb3ced619ccf6e36c1fcdca567a870cac26819a Mon Sep 17 00:00:00 2001 From: Phil Nash Date: Fri, 31 Aug 2012 18:50:46 +0100 Subject: [PATCH] Ptr op= takes const ref (fixes: #115) --- 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;