From 6bb0e8dee02e48a3b637fde553929a4ac32b9ce3 Mon Sep 17 00:00:00 2001 From: Nick Thompson Date: Wed, 8 Jul 2020 08:24:57 -0400 Subject: [PATCH] Add using std::isnan to pchip [CI SKIP] --- include/boost/math/interpolators/pchip.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/boost/math/interpolators/pchip.hpp b/include/boost/math/interpolators/pchip.hpp index 3a37ddf67..6b6db5cce 100644 --- a/include/boost/math/interpolators/pchip.hpp +++ b/include/boost/math/interpolators/pchip.hpp @@ -20,6 +20,7 @@ public: Real left_endpoint_derivative = std::numeric_limits::quiet_NaN(), Real right_endpoint_derivative = std::numeric_limits::quiet_NaN()) { + using std::isnan; if (x.size() < 4) { throw std::domain_error("Must be at least four data points."); @@ -116,4 +117,4 @@ private: }; } -#endif \ No newline at end of file +#endif