TArray Find No operator found or suitable conversion
I created a custom struct called FItem. Then I declared an Array in my header:
Then in my cpp
And I get the following compile error:
Any ideas why this is happening?
I assumie that FItem is custom data struct.
You need to overload == operator inside it. Find assumes there is operator == which will compare two values.
Follow this question
Once you sign in you will be able to subscribe for any updates here