From ae17ad13fe793c6df3ec5f478a9fc46c7e47a822 Mon Sep 17 00:00:00 2001 From: Jamie Reece Wilson Date: Fri, 16 Feb 2024 11:45:57 +0000 Subject: [PATCH] [*] DeleteThatCastedOnce should check the real types trivialness --- Include/Aurora/Memory/Heap.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Include/Aurora/Memory/Heap.hpp b/Include/Aurora/Memory/Heap.hpp index 0abacc6e..38e9ed6e 100644 --- a/Include/Aurora/Memory/Heap.hpp +++ b/Include/Aurora/Memory/Heap.hpp @@ -142,9 +142,9 @@ namespace Aurora::Memory auto pBaseClass = AuStaticCast(pThat); - if constexpr (AuIsClass_v + if constexpr (AuIsClass_v #if !defined(AURT_HEAP_NO_STL) - && !std::is_trivially_destructible_v + && !std::is_trivially_destructible_v #endif ) {