From 4308b8bc38b55053ddad94f0b9cf20095d53b81c Mon Sep 17 00:00:00 2001 From: vrouvrea Date: Fri, 9 Sep 2016 16:14:20 +0000 Subject: isnan must be preceeded by std:: git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/trunk@1486 636b058d-ea47-450e-bf9e-a15bfbe3eedb Former-commit-id: 94adb015da0957f3b4ce3f5742f9cb0cf57b6284 --- src/Alpha_complex/include/gudhi/Alpha_complex.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/Alpha_complex/include/gudhi/Alpha_complex.h b/src/Alpha_complex/include/gudhi/Alpha_complex.h index 096d2d2e..2c95ceb4 100644 --- a/src/Alpha_complex/include/gudhi/Alpha_complex.h +++ b/src/Alpha_complex/include/gudhi/Alpha_complex.h @@ -309,7 +309,7 @@ class Alpha_complex : public Simplex_tree<> { std::cout << std::endl; #endif // DEBUG_TRACES // ### If filt(Sigma) is NaN : filt(Sigma) = alpha(Sigma) - if (isnan(filtration(f_simplex))) { + if (std::isnan(filtration(f_simplex))) { Filtration_value alpha_complex_filtration = 0.0; // No need to compute squared_radius on a single point - alpha is 0.0 if (f_simplex_dim > 0) { @@ -352,10 +352,10 @@ class Alpha_complex : public Simplex_tree<> { std::cout << vertex << " "; } std::cout << "is a face of Sigma\n"; - std::cout << " | isnan(filtration(Tau)=" << isnan(filtration(f_boundary)) << std::endl; + std::cout << " | isnan(filtration(Tau)=" << std::isnan(filtration(f_boundary)) << std::endl; #endif // DEBUG_TRACES // ### If filt(Tau) is not NaN - if (!isnan(filtration(f_boundary))) { + if (!std::isnan(filtration(f_boundary))) { // ### filt(Tau) = fmin(filt(Tau), filt(Sigma)) Filtration_value alpha_complex_filtration = fmin(filtration(f_boundary), filtration(f_simplex)); assign_filtration(f_boundary, alpha_complex_filtration); -- cgit v1.2.3