diff --git a/types/comparator.hpp b/types/comparator.hpp index 247c87ac..9ff016a5 100644 --- a/types/comparator.hpp +++ b/types/comparator.hpp @@ -61,7 +61,7 @@ namespace util::comparator { template struct indexed { constexpr - bool operator() (const T &a, const T &b) + bool operator() (const T &a, const T &b) const { for (auto x: util::zip (a, b)) { const auto &[i,j] = x; // clang-4.0: workaround for segfault.