diff options
| author | Phil Nash | 2012-08-31 18:50:46 +0100 |
|---|---|---|
| committer | Phil Nash | 2012-08-31 18:50:46 +0100 |
| commit | deb3ced619ccf6e36c1fcdca567a870cac26819a (patch) | |
| tree | a071e5c014f8887c98c2f4824cc66ad8c48b6a38 /include | |
| parent | 62b7039a7bd4c24462199f7aa4ae45f73ee11506 (diff) | |
| download | catch3-deb3ced619ccf6e36c1fcdca567a870cac26819a.tar.gz | |
Ptr op= takes const ref (fixes: #115)
Diffstat (limited to 'include')
| -rw-r--r-- | include/internal/catch_ptr.hpp | 2 |
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; |