Download

New warning compiling with Visual Studio 19 16.5.0

After upgrading to Visual Studio 19 16.5.0, the latest version, I am seeing a compiler warning that did not exist before. Since I have warnings as errors, this is a fatal error for me.

Severity Code Description Project File Line Suppression State
Warning C4996 ‘TBaseDelegate<TTypeWrapper<void>>::BindSP::FDeprecationMsg_490::condition’: Binding a delegate with a const object pointer and non-const function is deprecated. Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile. \UnrealEngine\Engine\Source\Runtime\Core\Public\Delegates\DelegateSignatureImpl.inl 490

Which is this:

    UE_STATIC_DEPRECATE(4.23, TIsConst&lt;UserClass&gt;::Value, "Binding a delegate with a const object pointer and non-const function is deprecated.");

Just FYI for the record, tracked all the occurrences of this down, one was in our game code and the others were coming from a store plugin called “Able”.

I find a lot of warnings/errors disappear with new engine builds.
or reverting to older msvc toolchain.

It’s easier than fixing the code.