From 64e3acc48cc69fcf93026322e3642dee3c93cdb8 Mon Sep 17 00:00:00 2001 From: Antoine Pilote Date: Fri, 7 Jul 2023 17:21:57 -0400 Subject: [PATCH] Added aliase for weak ptr --- Nuake/src/Core/Core.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Nuake/src/Core/Core.h b/Nuake/src/Core/Core.h index 1072c89a..181d234a 100644 --- a/Nuake/src/Core/Core.h +++ b/Nuake/src/Core/Core.h @@ -12,6 +12,8 @@ using Ref = std::shared_ptr; template using Scope = std::unique_ptr; +template +using Weak = std::weak_ptr; template constexpr Ref CreateRef(Args&& ... args) @@ -23,4 +25,4 @@ template constexpr Scope CreateScope(Args&& ... args) { return std::make_unique(std::forward(args)...); -} \ No newline at end of file +}