Commit f2e06804 authored by Victor Zverovich's avatar Victor Zverovich

Workaround an issue with Intel C++ compiler.

parent 648dba0a
......@@ -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) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment