summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Glisse <marc.glisse@inria.fr>2020-11-09 18:21:36 +0100
committerMarc Glisse <marc.glisse@inria.fr>2020-11-09 18:21:36 +0100
commit78100c3f35e6d05da3313fc8b28e24e550c8240a (patch)
tree7e841bba92b997ec5e13b249e72195a9908a5ce0
parent20c50414163aabe6216c638b25c9568cfd1db458 (diff)
static_assert message
-rw-r--r--src/Subsampling/include/gudhi/choose_n_farthest_points.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Subsampling/include/gudhi/choose_n_farthest_points.h b/src/Subsampling/include/gudhi/choose_n_farthest_points.h
index 3c337025..e6347d96 100644
--- a/src/Subsampling/include/gudhi/choose_n_farthest_points.h
+++ b/src/Subsampling/include/gudhi/choose_n_farthest_points.h
@@ -89,7 +89,7 @@ void choose_n_farthest_points(Distance dist,
}
std::size_t current_number_of_landmarks = 0; // counter for landmarks
- static_assert(std::numeric_limits<double>::has_infinity);
+ static_assert(std::numeric_limits<double>::has_infinity, "the number type needs to support infinity()");
// FIXME: don't hard-code the type as double. For Epeck_d, we also want to handle types that do not have an infinity.
const double infty = std::numeric_limits<double>::infinity(); // infinity (see next entry)
std::vector< double > dist_to_L(nb_points, infty); // vector of current distances to L from input_pts