Remove less_equal from call to is_sorted

This causes issues if you compile with -D_GLIBCXX_DEBUG. Underlying reason is
described in https://github.com/xtensor-stack/xtensor/issues/2296
This commit is contained in:
Paul Romano 2021-12-29 11:43:44 -05:00
parent 7b89ce11e7
commit c0e5ed2971

View file

@ -27,7 +27,7 @@ void TimeFilter::set_bins(gsl::span<const double> bins)
bins_.reserve(bins.size());
// Ensure time bins are sorted
if (!std::is_sorted(bins.cbegin(), bins.cend(), std::less_equal<double>())) {
if (!std::is_sorted(bins.cbegin(), bins.cend())) {
throw std::runtime_error {"Time bins must be monotonically increasing."};
}