Ptr op= takes const ref (fixes: #115)
This commit is contained in:
1 parent
62b7039a7b
commit
deb3ced619
2 files changed
+3
-3
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user