2
0
mirror of https://github.com/boostorg/math.git synced 2026-02-24 04:02:18 +00:00

Add using std::isnan to pchip [CI SKIP]

This commit is contained in:
Nick Thompson
2020-07-08 08:24:57 -04:00
parent b5d925de98
commit 6bb0e8dee0

View File

@@ -20,6 +20,7 @@ public:
Real left_endpoint_derivative = std::numeric_limits<Real>::quiet_NaN(),
Real right_endpoint_derivative = std::numeric_limits<Real>::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
#endif