Commit 73fda2a8 authored by Victor Zverovich's avatar Victor Zverovich

Fix error on MSVC.

parent 0195f543
......@@ -1235,9 +1235,7 @@ TEST(FormatterTest, FormatNaN) {
double nan = std::numeric_limits<double>::quiet_NaN();
EXPECT_EQ("nan", str(Format("{}") << nan));
EXPECT_EQ("+nan", str(Format("{:+}") << nan));
#ifndef signbit
# define signbit std::signbit
#endif
using namespace std;
if (signbit(-nan))
EXPECT_EQ("-nan", str(Format("{}") << -nan));
else
......
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