diff --git a/modules/memory/public/pointer_types/null_on_move.hpp b/modules/memory/public/pointer_types/null_on_move.hpp index 9cda10e..fe639c3 100644 --- a/modules/memory/public/pointer_types/null_on_move.hpp +++ b/modules/memory/public/pointer_types/null_on_move.hpp @@ -30,7 +30,7 @@ public: auto operator=(NullOnMove &&other) noexcept -> NullOnMove & { - if (this->m_value == other.m_value) + if (this == &other) { return *this; }