From b05762c95b07e64c9768be5ece7f7fa8b49c70e0 Mon Sep 17 00:00:00 2001 From: light7734 Date: Thu, 2 Oct 2025 23:54:08 +0330 Subject: [PATCH] feat(memory): add a get method to null_on_move due to weird cast required by vk_debug_set_object_name --- modules/memory/public/pointer_types/null_on_move.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/memory/public/pointer_types/null_on_move.hpp b/modules/memory/public/pointer_types/null_on_move.hpp index f98e655..aeea689 100644 --- a/modules/memory/public/pointer_types/null_on_move.hpp +++ b/modules/memory/public/pointer_types/null_on_move.hpp @@ -66,6 +66,11 @@ public: return m_value; } + [[nodiscard]] auto get() -> Underlying_T + { + return m_value; + } + private: Underlying_T m_value; };