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 20:59:51 +01:00
parent de6fec33cf
commit cc5dd956cc
@@ -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;
}