From b82b890314bfc64364f38e69696f7c6596ec3536 Mon Sep 17 00:00:00 2001 From: Alex Valavanis Date: Tue, 25 Jul 2017 13:17:19 +0100 Subject: libcola: C++11 fixes for Trusty --- src/libcola/cola.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libcola/cola.cpp') diff --git a/src/libcola/cola.cpp b/src/libcola/cola.cpp index d553110b9..0009ef894 100644 --- a/src/libcola/cola.cpp +++ b/src/libcola/cola.cpp @@ -126,7 +126,7 @@ ConstrainedMajorizationLayout Dij[i*n + j] = d; if(i==j) continue; double lij=0; - if(d!=0 && !isinf(d)) { + if(d!=0 && !std::isinf(d)) { lij=1./(d*d); } degree += lap2[i*n + j] = lij; @@ -284,7 +284,7 @@ inline double ConstrainedMajorizationLayout for (unsigned i = 1; i < n; i++) { for (unsigned j = 0; j < i; j++) { d = Dij[i*n+j]; - if(!isinf(d)&&d!=numeric_limits::max()) { + if(!std::isinf(d)&&d!=numeric_limits::max()) { diff = d - euclidean_distance(i,j); if(d>80&&diff<0) continue; sum += diff*diff / (d*d); -- cgit v1.2.3