Operator = member function already defined or declared

When I was trying to overload = in a class derived from AActor class, I got error says “member function already defined or declared” during the compile. Below is my AMapLocation.h file and corresponding error message. The error is coming from line 24 in AMapLocation.h. I don’t understand because I have never created operator = overloading for this class at all. If this operator(=) is already defined in GENERATED_BODY(), how do we override it? Should we put virtual key word?
If anyone understand this, please help.

This is not feasible, maybe you should use a struct.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.