Commit 03411fe8 authored by Robert Kimball's avatar Robert Kimball Committed by Scott Cyphers

fix for ambiguous isnan and isinf when using gcc (#751)

parent 393a27e2
...@@ -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 (::isnan(value))
{ {
rc = "NAN"; rc = "NAN";
} }
else if (isinf(value)) else if (::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