diff --git a/Redcraft.Utility/Source/Public/Memory/Allocator.h b/Redcraft.Utility/Source/Public/Memory/Allocator.h index e6043f6..4e9cc03 100644 --- a/Redcraft.Utility/Source/Public/Memory/Allocator.h +++ b/Redcraft.Utility/Source/Public/Memory/Allocator.h @@ -13,7 +13,7 @@ NAMESPACE_MODULE_BEGIN(Utility) struct FAllocatorInterface; template -concept CAllocatableObject = CObject && !CConst && !CVolatile; +concept CAllocatableObject = CObject && !CConst && !CVolatile && CDestructible; template concept CAllocator = !CSameAs && CAllocatableObject @@ -63,7 +63,7 @@ struct FAllocatorInterface /** Deallocates storage. */ FORCEINLINE void Deallocate(T* InPtr) = delete; - /** @return true if allocation can be deallocated by another allocator, otherwise false. */ + /** @return true if allocation can be deallocated by another allocator, otherwise false. always return true when bSupportsMultipleAllocation is true. */ NODISCARD FORCEINLINE bool IsTransferable(T* InPtr) const { return true; } /** Calculates the amount of slack to allocate for an array that has just grown to a given number of elements. */