remove the platform dependant build hacks inside FSGArrayUtils::FromStdVector as msvc is not able to deduce TArray<T>::SizeType

This commit is contained in:
Mamadou Babaei
2024-03-22 12:40:54 +01:00
parent 0f95cc4d4b
commit 2c4152b314
@@ -50,14 +50,7 @@ public:
template<typename T>
static FORCEINLINE TArray<T> FromStdVector(const std::vector<T>& Vector)
{
const TArray<T> Array{&Vector[0], StaticCast<
#if !PLATFORM_ANDROID
TArray<T>::SizeType
#else /* !PLATFORM_ANDROID */
int32
#endif /* !PLATFORM_ANDROID */
>(Vector.size())
};
const TArray<T> Array{&Vector[0], StaticCast<int32>(Vector.size())};
return Array;
}