[gdal-dev] Visual C++ 2015: compiling error with GDAL 3.2
Bugbuster
philippe.ghesquiere at airbus.com
Tue Dec 22 02:11:23 PST 2020
My environnement is :
* Windows 10
* Visual C++ 2015 64 bits
When compiling GDAL 3.2, I get an error in gcore/tilematrixset.hpp
tilematrixset.hpp(47): error C2131: expression did not evaluate to a
constant
failure was caused by non-constant arguments or reference to a non-constant
symbol
note: see usage of 'std::numeric_limits<double>::quiet_NaN()'
The code line which gives the error is :
static constexpr double NaN = std::numeric_limits<double>::quiet_NaN();
I tried to replace it with "static const", "const" and other variants : no
success.
I know it is not easy to initialize a static constant attribute in a header
file, but I do not remember all the subtilities :-(
All other uses of std::numeric_limits<double>::quiet_NaN() in the code are
OK.
Do you have any ideas?
--
Sent from: http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html
More information about the gdal-dev
mailing list