refactor(typetraits): TIsDestructible use Cpp17Destructible requirements instead of std::is_destructible

This commit is contained in:
2022-05-15 14:18:39 +08:00
parent 13e3b49118
commit 5d1f622af8
4 changed files with 41 additions and 34 deletions

View File

@ -122,9 +122,7 @@ FORCEINLINE void Destruct(ElementType* Element, size_t Count = 1)
{
while (Count)
{
typedef ElementType DestructItemsElementTypeTypedef;
Element->DestructItemsElementTypeTypedef::~DestructItemsElementTypeTypedef();
Element->~ElementType();
++Element;
--Count;
}