Compile error convert T* to const UObject * in WeakObjectPtrTemplates

Hi guys, I have my Game in UE4.24, and work perfectly in the Engine downloaded from Epic Launcher, but now I need compilate my game in the Engine from git (open), and I have this bug compilation, and I dont know what happen because is a error with the Engine, but if try compilate a new game (in white), and I dont have any problem.


 template<class U>
FORCEINLINE typename TEnableIf<!TLosesQualifiersFromTo<U, T>::Value, TWeakObjectPtr&>::Type operator=(U* Object)
{
T* TempObject = Object;
TWeakObjectPtrBase::operator=(TempObject);
return *this;
}

I hope you can help me!