From: tbaudier Date: Fri, 15 Feb 2019 14:05:11 +0000 (+0100) Subject: Change vnl_math_abs to std:: X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=7bcf6cdd7f0962768ce55ae0ed62d4830d2a2c0b;p=clitk.git Change vnl_math_abs to std:: This changement is mandatory for ITKv5 All recent compiler are able to compile with std:: --- diff --git a/common/clitkMatrix.cxx b/common/clitkMatrix.cxx index 2c09f31..e4afa7b 100644 --- a/common/clitkMatrix.cxx +++ b/common/clitkMatrix.cxx @@ -35,7 +35,7 @@ Get4x4MatrixDoubleAsString(vtkMatrix4x4 *matrix, for (unsigned int j = 0; j < 4; j++){ double absmax = 0.; for (unsigned int i = 0; i < 4; i++) - absmax = std::max(absmax, vnl_math_abs(matrix->GetElement(i, j))); + absmax = std::max(absmax, std::abs(matrix->GetElement(i, j))); unsigned ndigits = (unsigned)std::max(0.,std::log10(absmax))+1; width[j] = precision+ndigits+3; }