[geos-commits] r2874 - trunk/capi

svn_geos at osgeo.org svn_geos at osgeo.org
Mon Jan 18 16:15:47 EST 2010


Author: mloskot
Date: 2010-01-18 16:15:43 -0500 (Mon, 18 Jan 2010)
New Revision: 2874

Modified:
   trunk/capi/geos_ts_c.cpp
Log:
Load elements of std namespace to scope of geos_ts_c.cpp file, so C99 functions are loaded even if hidden in std (non-standard extension in GCC).

Modified: trunk/capi/geos_ts_c.cpp
===================================================================
--- trunk/capi/geos_ts_c.cpp	2010-01-18 18:15:40 UTC (rev 2873)
+++ trunk/capi/geos_ts_c.cpp	2010-01-18 21:15:43 UTC (rev 2874)
@@ -85,6 +85,10 @@
 
 #include "geos_c.h"
 
+// Intentional, to allow non-standard C elements like C99 functions to be
+// imported through C++ headers of C library, like <cmath>.
+using namespace std;
+
 /// Define this if you want operations triggering Exceptions to
 /// be printed.
 /// (will use the NOTIFY channel - only implemented for GEOSUnion so far)



More information about the geos-commits mailing list