Module |
|
Header |
/Engine/Source/Runtime/Core/Public/Templates/UnrealTemplate.h |
Include |
#include "Templates/UnrealTemplate.h" |
template<typename T, typename ArgType>
T StaticCast
(
ArgType && Arg
)
This exists to avoid a Visual Studio bug where using a cast to forward an rvalue reference array argument to a pointer parameter will cause bad code generation. Wrapping the cast in a function causes the correct code to be generated.