fix(templates): fix FSingleton not working correctly with EBO on MSVC

make CAnyCustomStorage satisfy the concept of FSingleton
This commit is contained in:
2022-11-18 23:17:54 +08:00
parent a4ac19673f
commit 6a70d4273e
4 changed files with 24 additions and 13 deletions

View File

@ -54,7 +54,7 @@ NAMESPACE_PRIVATE_END
template <typename T, bool bIsRef = false> requires (CTriviallyCopyable<T>
&& CCopyConstructible<T> && CMoveConstructible<T>
&& CCopyAssignable<T> && CMoveAssignable<T>)
struct TAtomic : public FSingleton
struct TAtomic : FSingleton
{
protected:
@ -233,7 +233,7 @@ using TAtomicRef = TAtomic<T, true>;
template <typename T>
TAtomic(T) -> TAtomic<T>;
struct FAtomicFlag : public FSingleton
struct FAtomicFlag : FSingleton
{
public: