From ed0da5d7c5313cc3b2e01e4b405197c12695019c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C3=A5rd=20Skaflestad?= Date: Mon, 5 Dec 2011 19:20:31 +0100 Subject: [PATCH] changeset: 946:cc39eedcd753 tag: tip user: Andreas Lauser date: Mon Dec 05 19:14:25 2011 +0100 summary: dune-cornerpoint: fix compilation with newish compilers --- dune/common/MonotCubicInterpolator.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dune/common/MonotCubicInterpolator.cpp b/dune/common/MonotCubicInterpolator.cpp index 8a20ecf8..332ead06 100644 --- a/dune/common/MonotCubicInterpolator.cpp +++ b/dune/common/MonotCubicInterpolator.cpp @@ -163,7 +163,7 @@ read(const std::string & datafilename, int xColumn, int fColumn) void MonotCubicInterpolator:: addPair(double newx, double newf) throw(const char*) { - if (isnan(newx) || isinf(newx) || isnan(newf) || isinf(newf)) { + if (std::isnan(newx) || std::isinf(newx) || std::isnan(newf) || std::isinf(newf)) { throw("MonotCubicInterpolator: addPair() received inf/nan input."); } data[newx] = newf ; @@ -179,7 +179,7 @@ double MonotCubicInterpolator:: evaluate(double x) const throw(const char*){ - if (isnan(x) || isinf(x)) { + if (std::isnan(x) || std::isinf(x)) { throw("MonotCubicInterpolator: evaluate() received inf/nan input."); }