[geos-commits] r4145 - trunk/tests/unit/capi

svn_geos at osgeo.org svn_geos at osgeo.org
Wed Feb 17 03:15:50 PST 2016


Author: mloskot
Date: 2016-02-17 03:15:50 -0800 (Wed, 17 Feb 2016)
New Revision: 4145

Modified:
   trunk/tests/unit/capi/GEOSGeom_createCollection.cpp
Log:
Enable test case using std::array only if C++0x is available.

Modified: trunk/tests/unit/capi/GEOSGeom_createCollection.cpp
===================================================================
--- trunk/tests/unit/capi/GEOSGeom_createCollection.cpp	2016-02-17 10:52:55 UTC (rev 4144)
+++ trunk/tests/unit/capi/GEOSGeom_createCollection.cpp	2016-02-17 11:15:50 UTC (rev 4145)
@@ -73,6 +73,7 @@
         ensure_equals(GEOSGetNumGeometries_r(handle_, geom_), geom_size);
     }
 
+#if (defined(_MSC_VER) && _MSC_VER >= 1600) || __cplusplus > 199711L || defined(__GXX_EXPERIMENTAL_CXX0X__)
     // Create collection from constant length std::array
     template<>
     template<>
@@ -88,6 +89,7 @@
             geoms.data(), static_cast<int>(geoms.size()));
         ensure_equals(GEOSGetNumGeometries_r(handle_, geom_), geom_size);
     }
+#endif
 
     // Create collection from dynamic length std::vector of geometries
     template<>



More information about the geos-commits mailing list