Operator Overloading

#Solusion

You shouldn’t put operator overloads in .cpp files, just keep it in the .h

//some .h file that stores all your operators
FORCEINLINE    FString& operator<<(FString &Str, const int32& Value)
 {
     Str += FString::FromInt(Value);
     return Str;
 }

and put in in a .h file that is included in every class that needs to use the operator

#UObject Static Function Library

An ideal place to put operators is in a .h file that is a static function library where you store all your core custom code, which is then included in all your major game class .h files.

#Wiki on Static Function Libraries

:slight_smile:

RAma