Navigation
API > API/Runtime > API/Runtime/Core
Description
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.
| Name | StaticCast |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Templates/UnrealTemplate.h |
| Include Path | #include "Templates/UnrealTemplate.h" |
template<typename T, typename ArgType>
T StaticCast
(
ArgType && Arg
)