[*] DeleteThatCastedOnce should check the real types trivialness

This commit is contained in:
Reece Wilson 2024-02-16 11:45:57 +00:00
parent 72335a09a9
commit ae17ad13fe

View File

@ -142,9 +142,9 @@ namespace Aurora::Memory
auto pBaseClass = AuStaticCast<Z>(pThat);
if constexpr (AuIsClass_v<T>
if constexpr (AuIsClass_v<Z>
#if !defined(AURT_HEAP_NO_STL)
&& !std::is_trivially_destructible_v<T>
&& !std::is_trivially_destructible_v<Z>
#endif
)
{