From 3724188602e866601b25ff81e4e30efb33249a0e Mon Sep 17 00:00:00 2001 From: _Redstone_c_ Date: Thu, 3 Feb 2022 22:25:02 +0800 Subject: [PATCH] fix(templates): fix the problem that FNoncopyable etc. cannot be constructed --- Redcraft.Utility/Source/Public/Templates/Noncopyable.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Redcraft.Utility/Source/Public/Templates/Noncopyable.h b/Redcraft.Utility/Source/Public/Templates/Noncopyable.h index d970585..0ddb0a5 100644 --- a/Redcraft.Utility/Source/Public/Templates/Noncopyable.h +++ b/Redcraft.Utility/Source/Public/Templates/Noncopyable.h @@ -8,12 +8,14 @@ NAMESPACE_MODULE_BEGIN(Utility) struct FNoncopyable { + FNoncopyable() = default; FNoncopyable(const FNoncopyable&) = delete; FNoncopyable& operator=(const FNoncopyable&) = delete; }; struct FNonmovable { + FNonmovable() = default; FNonmovable(const FNonmovable&&) = delete; FNonmovable& operator=(const FNonmovable&&) = delete; };