mirror of
https://github.com/catchorg/Catch2.git
synced 2025-05-27 15:09:33 +00:00
Ptr op= takes const ref (fixes: #115)
This commit is contained in:
parent
62b7039a7b
commit
deb3ced619
2 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue