Commit 364f07ab authored by Matthew Brookhart's avatar Matthew Brookhart Committed by Scott Cyphers

move to std::isnan and std::isinf (#752)

parent 03411fe8
...@@ -28,11 +28,11 @@ template <typename T> ...@@ -28,11 +28,11 @@ template <typename T>
string to_cpp_string(T value) string to_cpp_string(T value)
{ {
string rc; string rc;
if (::isnan(value)) if (std::isnan(value))
{ {
rc = "NAN"; rc = "NAN";
} }
else if (::isinf(value)) else if (std::isinf(value))
{ {
if (value > 0) if (value > 0)
{ {
......
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