==Operator overloading not working

Do “FORCEINLINE” operator overloading in the body of your class in .H file;
Never in CPP file.

Instead of



FORCEINLINE bool operator==(UPhoto &Other);


Just do it all right there instead:



FORCEINLINE bool operator == (const UPhoto &Other)
{
    //......
}