From cfa944ded7370fb5f22b1fb894ecf6b9bd3f7381 Mon Sep 17 00:00:00 2001 From: Marijn Tamis Date: Mon, 3 Jul 2017 11:49:08 +0200 Subject: NvCloth 1.1.1 Release. (22392725) --- NvCloth/extensions/src/ClothFabricCooker.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'NvCloth/extensions/src/ClothFabricCooker.cpp') diff --git a/NvCloth/extensions/src/ClothFabricCooker.cpp b/NvCloth/extensions/src/ClothFabricCooker.cpp index f0e4dea..2d800e9 100644 --- a/NvCloth/extensions/src/ClothFabricCooker.cpp +++ b/NvCloth/extensions/src/ClothFabricCooker.cpp @@ -97,7 +97,9 @@ nv::cloth::Range CreateRange(typename nv::cloth::Vector::Type const& template nv::cloth::Range CreateRangeF(typename nv::cloth::Vector::Type const& vector, int offset = 0) { +#ifndef _LIBCPP_HAS_NO_STATIC_ASSERT static_assert(sizeof(T) == sizeof(U), "Type T and U need to be of the same size"); +#endif const T* begin = reinterpret_cast(vector.begin()+offset); const T* end = reinterpret_cast(vector.end()); -- cgit v1.2.3