[Qgis-developer] isfinite <-> std::isfinite

humarco marco.hugentobler at karto.baug.ethz.ch
Fri Sep 29 05:23:05 EDT 2006


Dear developers,

in qgswmsprovider.cpp:1954, there are the following lines of code. I have gcc 
version 4.0.3 and this version needs 'std::isfinite' to compile. I wonder 
from what version on it needs 'isfinite' without 'std::' . Please post your 
compiler versions and if you need 'std::isfinite' or 'isfinite' for it.

cheers,
Marco


#if __GNUC__ >= 4
    
if(!isfinite(extent.xMin()) || !isfinite((int)extent.yMin()) || !isfinite(extent.xMax()) || 
\
       !isfinite((int)extent.yMax()))
#else
    
if(!std::isfinite(extent.xMin()) || !std::isfinite((int)extent.yMin()) || !std::isfinite(extent.xMax()) || 
\
       !std::isfinite((int)extent.yMax()))
#endif



More information about the Qgis-developer mailing list