[geos-devel] FINITE() vs. finite()
strk at refractions.net
strk at refractions.net
Tue Apr 4 07:16:17 EDT 2006
I can't remember why, but the FINITE()
macro in platform.h.in is not using finite()
call from <cmath> anymore. Should it ?
I just found a bug in the HCoordinate class
which would throw an exception if FINITE()
doesn't evaluate to true, but is failing
to catch -inf and +inf values due to
absence of the finite() call.
So, the question is:
- Should FINITE() macro check for finite() ?
OR
- Should HCoordinate use finite() instead
of FINITE() macro ?
Comments welcome.
--strk;
/"\ ASCII Ribbon Campaign
\ / Respect for low technology.
X Keep e-mail messages readable by any computer system.
/ \ Keep it ASCII.
More information about the geos-devel
mailing list