Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Templates
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/Templates/UnrealTemplate.h |
| Include | #include "Templates/UnrealTemplate.h" |
template<typename T, typename ArgType>
T StaticCast
(
ArgType && Arg
)
Remarks
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.