[geos-devel] [GEOS] #442: isfinite not in scope using cmath on os x

GEOS geos-trac at osgeo.org
Sat May 14 16:20:57 EDT 2011

#442: isfinite not in scope using cmath on os x
 Reporter:  jklowden    |       Owner:  geos-devel@…              
     Type:  defect      |      Status:  new                       
 Priority:  major       |   Milestone:                            
Component:  Default     |     Version:  3.0.3                     
 Severity:  Unassigned  |    Keywords:                            
 The following patch allows compilation on a modern mac.

  Index: src/algorithm/RobustDeterminant.cpp
  --- src/algorithm/RobustDeterminant.cpp (revision 3364)
  +++ src/algorithm/RobustDeterminant.cpp (working copy)
  @@ -23,6 +23,7 @@
   #include <geos/util/IllegalArgumentException.h>

   #include <cmath>
  +using std::isfinite;

   #include <geos/platform.h> // for ISNAN, FINITE

 I know this line was removed a mere 28 hours ago.  I'm not sure how
 platform.h might be changed instead; it's very messy.

Ticket URL: <http://trac.osgeo.org/geos/ticket/442>
GEOS <http://geos.refractions.net/>
GEOS (Geometry Engine - Open Source) is a C++ port of the Java Topology Suite (JTS).

More information about the geos-devel mailing list