From 385dd86c0d58cdba4eefd4e39694ee47ff3ab3e6 Mon Sep 17 00:00:00 2001 From: Pjotr Prins Date: Wed, 22 Nov 2017 10:25:47 +0000 Subject: Remove compiler warnings and add check is_nan --- src/mathfunc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mathfunc.cpp') diff --git a/src/mathfunc.cpp b/src/mathfunc.cpp index 908a52d..d3804dd 100644 --- a/src/mathfunc.cpp +++ b/src/mathfunc.cpp @@ -58,7 +58,7 @@ using namespace std; bool has_nan(const vector v) { for (const auto& e: v) { - if (std::isnan(e)) + if (is_nan(e)) return true; } return false; -- cgit v1.2.3