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

summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorPhil Nash2012-08-31 18:50:46 +0100
committerPhil Nash2012-08-31 18:50:46 +0100
commitdeb3ced619ccf6e36c1fcdca567a870cac26819a (patch)
treea071e5c014f8887c98c2f4824cc66ad8c48b6a38 /include
parent62b7039a7bd4c24462199f7aa4ae45f73ee11506 (diff)
downloadcatch3-deb3ced619ccf6e36c1fcdca567a870cac26819a.tar.gz
Ptr op= takes const ref (fixes: #115)
Diffstat (limited to 'include')
-rw-r--r--include/internal/catch_ptr.hpp2
1 files changed, 1 insertions, 1 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;