Skip to content

Commit 543572e

Browse files
committed
COMP: Replace vnl_math_abs with std::abs
Support for vnl_math_abs has been removed in ITK 5.
1 parent febab1f commit 543572e

File tree

1 file changed

+1
-1
lines changed
  • src/Core/Common/DistanceBetweenPoints

1 file changed

+1
-1
lines changed

src/Core/Common/DistanceBetweenPoints/Code.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ int main(int, char *[])
5858
PointType::RealType dist2 = p0.SquaredEuclideanDistanceTo(p1);
5959
std::cout << "Dist2: " << dist2 << std::endl;
6060

61-
if( vnl_math_abs( dist2 - dist * dist ) < vnl_math::eps )
61+
if( std::abs( dist2 - dist * dist ) < vnl_math::eps )
6262
{
6363
std::cerr << "dist2 != dist * dist" << std::endl;
6464
return EXIT_FAILURE;

0 commit comments

Comments
 (0)