comparator: indexed comparator should be const
This commit is contained in:
parent
01ed956ee4
commit
3f8c490733
@ -61,7 +61,7 @@ namespace util::comparator {
|
||||
template <typename T>
|
||||
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.
|
||||
|
Loading…
Reference in New Issue
Block a user