Warning C4996: TBaseMulticastDelegate
oblm opened this issue · 1 comments
Issue
This warning is produced when I build 4.24-SpatialOSUnrealGDK-release using Visual Studio 2019 16.8.4
:
1>C:\Unreal\UnrealEngine\Engine\Source\Runtime\Core\Public\Delegates/DelegateSignatureImpl.inl(788): warning C4996: 'TBaseMulticastDelegate<void>::AddRaw::FDeprecationMsg_788::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. 1> C:/Unreal/UnrealEngine/Engine/Plugins/Runtime/nDisplay/Source/DisplayCluster/Private/Render/DisplayClusterRenderManager.cpp(649): note: see reference to function template instantiation 'FDelegateHandle TBaseMulticastDelegate<void>::AddRaw<const FDisplayClusterRenderManager,>(UserClass ,void (__cdecl FDisplayClusterRenderManager:: )(void))' being compiled 1> with 1> [ 1> UserClass=const FDisplayClusterRenderManager 1> ] 1> C:/Unreal/UnrealEngine/Engine/Plugins/Runtime/nDisplay/Source/DisplayCluster/Private/Render/DisplayClusterRenderManager.cpp(649): note: see reference to function template instantiation 'FDelegateHandle TBaseMulticastDelegate<void>::AddRaw<const FDisplayClusterRenderManager,>(UserClass ,void (__cdecl FDisplayClusterRenderManager:: )(void))' being compiled 1> with 1> [ 1> UserClass=const FDisplayClusterRenderManager 1> ]
Workaround
This warning is harmless, you can ignore it, or follow these steps to turn it off.
Internal ticket
UNR-4705.
- This warning is produced by Epic's code, not Improbable's.
- It does not produce in later Unreal Engine versions.
For the above reasons, we will not fix this issue.