fix(templates): fix the problem that FNoncopyable etc. cannot be constructed

This commit is contained in:
_Redstone_c_ 2022-02-03 22:25:02 +08:00
parent c70d22c85b
commit 3724188602

View File

@ -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;
};