From c0e5ed2971401daaafe19f12e7c3a575cd0d174c Mon Sep 17 00:00:00 2001 From: Paul Romano Date: Wed, 29 Dec 2021 11:43:44 -0500 Subject: [PATCH] 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 --- src/tallies/filter_time.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tallies/filter_time.cpp b/src/tallies/filter_time.cpp index 6d3b9ab78f..fc626873b9 100644 --- a/src/tallies/filter_time.cpp +++ b/src/tallies/filter_time.cpp @@ -27,7 +27,7 @@ void TimeFilter::set_bins(gsl::span bins) bins_.reserve(bins.size()); // Ensure time bins are sorted - if (!std::is_sorted(bins.cbegin(), bins.cend(), std::less_equal())) { + if (!std::is_sorted(bins.cbegin(), bins.cend())) { throw std::runtime_error {"Time bins must be monotonically increasing."}; }