AddUnique to TArray of Structures causes error

Amusingly enough, I’ve never needed to compare structs this way in C++ before. You can’t ‘==’ compare structs normally in C++, and that appears to be how AddUnique works, with no special changes made to make structs work with the function.

So, one has to write their own comparison function if they had wanted to do an AddUnique with structures.

1 Like