From bf8ffc3dc93cdcc8563951bac626c0f2235d5e32 Mon Sep 17 00:00:00 2001 From: light7734 Date: Wed, 24 Sep 2025 10:31:52 +0330 Subject: [PATCH] fix(memory): move construct of NullOnMove --- 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 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; }