mirror of
https://github.com/catchorg/Catch2.git
synced 2025-08-01 12:55:40 +02:00
Ptr op= takes const ref (fixes: #115)
This commit is contained in:
@@ -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