[*] DeleteThatCastedOnce should check the real types trivialness
This commit is contained in:
parent
72335a09a9
commit
ae17ad13fe
@ -142,9 +142,9 @@ namespace Aurora::Memory
|
|||||||
|
|
||||||
auto pBaseClass = AuStaticCast<Z>(pThat);
|
auto pBaseClass = AuStaticCast<Z>(pThat);
|
||||||
|
|
||||||
if constexpr (AuIsClass_v<T>
|
if constexpr (AuIsClass_v<Z>
|
||||||
#if !defined(AURT_HEAP_NO_STL)
|
#if !defined(AURT_HEAP_NO_STL)
|
||||||
&& !std::is_trivially_destructible_v<T>
|
&& !std::is_trivially_destructible_v<Z>
|
||||||
#endif
|
#endif
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user