Fix move assignment from the same object
This commit is contained in:
1 parent
17a647b897
commit
ec937b2395
2 files changed
+14
-1
No files matched your search
+1
-1
@@ -81,7 +81,7 @@ public:
|
||||
|
||||
rcp & operator=(rcp && other) noexcept
|
||||
{
|
||||
if (ptr != other.ptr)
|
||||
if (this != &other)
|
||||
{
|
||||
if (ptr)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user