diff --git a/dlib/manifold_regularization/sample_pair.h b/dlib/manifold_regularization/sample_pair.h index b4233223f..1a03bf9df 100644 --- a/dlib/manifold_regularization/sample_pair.h +++ b/dlib/manifold_regularization/sample_pair.h @@ -20,7 +20,7 @@ namespace dlib _index1(0), _index2(0) { - _distance = std::numeric_limits::max(); + _distance = std::numeric_limits::infinity(); } sample_pair (