diff --git a/modules/memory/public/pointer_types/null_on_move.hpp b/modules/memory/public/pointer_types/null_on_move.hpp index fe639c3..f98e655 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 == &other) + if (this == std::addressof(other)) { return *this; }