Fix move assignment from the same object

This commit is contained in:
josh committed 2026-02-25 00:49:33 -05:00
1 parent 17a647b897
commit ec937b2395
2 files changed
+14 -1

No files matched your search

+1 -1
View File
@@ -81,7 +81,7 @@ public:
rcp & operator=(rcp && other) noexcept
{
if (ptr != other.ptr)
if (this != &other)
{
if (ptr)
{