remove the platform dependant build hacks inside FSGArrayUtils::FromStdVector as msvc is not able to deduce TArray<T>::SizeType
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user