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

GEOS geos-trac at osgeo.org
Sat May 14 16:39:30 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:  svn-trunk                 
 Severity:  Unassigned  |    Keywords:                            
------------------------+---------------------------------------------------
Changes (by mloskot):

  * version:  3.0.3 => svn-trunk


Old description:

> 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.

New description:

 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#comment:1>
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