Workaround an issue with Intel C++ compiler.

This commit is contained in:
Victor Zverovich 2014-04-10 10:49:55 -07:00
parent 648dba0a78
commit f2e06804c5

View File

@ -51,8 +51,11 @@ namespace {
inline int SignBit(double value) {
// When compiled in C++11 mode signbit is no longer a macro but a function
// defined in namespace std and the macro is undefined.
using namespace std;
#ifdef signbit
return signbit(value);
#else
return std::signbit(value);
#endif
}
inline int IsInf(double x) {