From bf6f2e9981cc8a8423bbee38521c9deaca7e8225 Mon Sep 17 00:00:00 2001 From: light7734 Date: Wed, 24 Sep 2025 10:34:28 +0330 Subject: [PATCH] fix(memory): using the overloaded & instead of std::addressof --- modules/memory/public/pointer_types/null_on_move.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }