Hello, i’m having warning while compiling my code, i deactivate it but i would prefere set this correctly.
The error is is the following from Engine\Source\Runtime\Core\Public\UObject\WeakObjectPtrTemplates.h (Line 89):
I was not able to found a way to create const TWeakObjecPtr, i searched in FWeakObjectPtr too but nothing about that, how should i do since it is DEPRECATED? What is the explicit way?
I think you meant TWeakObjectPtr<const UObject> here? Your version would be a const weak pointer to a mutable object, which doesn’t make too much sense when starting from a pointer to a const object.
Yes that’s totaly right but TWeakObjectPtr<const UObject> was the thirst think i tried and i was not able to compile, i’ll take a look again in next hours. Thank you.