Doing this assignment for my class a dodgeball game on unreal engine and this error keeps popping up. I have no clue what to do or what it means
Severity | Code | Description | Project | File | Line | Suppression State | Details |
---|---|---|---|---|---|---|---|
Error | C2440 | ‘’: cannot convert from ‘const From *’ to ‘TStringConversion<TStringConvert<From,To>,128>’ | Dodgeball | C:\Program Files\Epic Games\UE_5.0\Engine\Source\Runtime\Core\Public\Containers\StringConv.h | 1048 |
template <typename To, int32 DefaultConversionSize = DEFAULT_STRING_CONVERSION_SIZE, typename From>
FORCEINLINE auto StringCast(const From* Str)
{
if constexpr (FPlatformString::IsCharEncodingCompatibleWith<From, To>())
{
return TStringPointer((const To*)Str);
}
else
{
return TStringConversion<TStringConvert<From, To>, DefaultConversionSize>(Str);
}
}