USTRUCT inheritance and TArrays

Hi guys!
I’m having problems compiling, using inheriting structs in a TArray. The compiler throws C2678 errors on a lot of engine code - mainly Array.h - because of the template functions. It seems to me like the TArray templates don’t cover this situation (inheritance), since it complains about not being able to compare:

“trying to match the argument list ‘(const FItemStruct, const FItemStruct)’”

Any ideas?

(I have attached an error log)

You should provide some basic operators overloads for your struct to be able use it within TArray. Implementing “operator ==” should be enough i believe.

Cool, that worked! Cheers!