That builds fine for me but when I try use it in one of my other classes e.g:
FString Ammo; Ammo << MyCharacter->Ammo;
I’m getting error "no operator ‘<<’ matches these operands, types are FString << int32 also if I try use the operator directly when creating FString it keeps saying a “;” is missing e.g:
FString Health << MyCharacter->Health;
Also I should note above I have code FString& operator<< this is from looking at the tutorial here I’ve also tried this setup with FString &operator<< which is the way it is shown for operator overloading in the C++ notes I’m working out of, neither works for me.
I have a .h and .cpp specifically for the operator over loading that’s where the first two snippets of code are respectively. And the .h for operator overloading is included in the .cpp file where I am trying to use the overloaded operator (third/fourth snippet).