Since updating to 5.5 I get this warning when compiling my project with UE5.5 (upgraded from 5.4)
warning C4996: ‘TSoftObjectPtr < UTexture2D > ::TSoftObjectPtr’: Constructing TSoftObjectPtr from an incompatible pointer type has been deprecated. Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile.
Also for a custom type:
TSoftObjectPtr< MyBaseDataAsset >::TSoftObjectPtr’: Constructing TSoftObjectPtr from an incompatible pointer type has been deprecated. Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile.
Same with Visual Studio 2022 and JetBrains Rider.
Any ideas?
I think I found the reason and a solution, so it might help someone else if they stumble upon this.
It seems in 5.5 some implicit casts have been deprecated.
So code like: