Fix template type mismatch for Heap functions in Array.h

TArray’s heap functions cannot be used with UObject* (compilation error) or TObjectPtr (compilation warning) even when an operator<(…) is defined for the type.

This is fixed in https://github.com/EpicGames/UnrealEngine/pull/14003

[Attachment Removed]

Steps to Reproduce
Add the HeapWarning.h file provided to a project and compile.

[Attachment Removed]

Hi Mathieu,

Thanks for that - the change has been integrated and will be available in 5.8.

Steve

[Attachment Removed]