0028824: Possibility to build OCCT 7.1.0 and above using Visual Studio 2008
[occt.git] / src / BVH / BVH_Types.hxx
index 70dc9bf..6cbf7ae 100644 (file)
@@ -247,7 +247,14 @@ namespace BVH
       if (Size (theArray) == theCount)
       {
 #ifdef _STD_VECTOR_SHRINK
+
+#if(defined(_MSC_VER) && (_MSC_VER < 1600))
+        BVH_ArrayNt aTmpArray(theArray);
+        theArray.swap(aTmpArray);
+#else
         theArray.shrink_to_fit();
+#endif
+
 #endif
       }
       else