[gdal-dev] +/-infinity as an uninitialized marker

Mateusz Loskot mateusz at loskot.net
Tue Mar 21 08:19:17 PDT 2017


On 21 March 2017 at 16:09, Even Rouault <even.rouault at spatialys.com> wrote:
> I've considered isinf() but I know we have had issues in some environments
> with isinf() being a macro, and thus std::isinf() ending up
> std::something_different

Yes, indeed. There's been lots of problems, in GEOS too.

BTW, one of anti-macro expand solutions with parentheses (prevents ADL too):
(std::isinf)()
(std::min)()
etc.

> Actually, it seems std::isinf() is C++11 ?

Yes it is.

Best regards,
-- 
Mateusz Loskot, http://mateusz.loskot.net


More information about the gdal-dev mailing list