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>
|
template <typename T>
|
||||||
struct indexed {
|
struct indexed {
|
||||||
constexpr
|
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)) {
|
for (auto x: util::zip (a, b)) {
|
||||||
const auto &[i,j] = x; // clang-4.0: workaround for segfault.
|
const auto &[i,j] = x; // clang-4.0: workaround for segfault.
|
||||||
|
Loading…
Reference in New Issue
Block a user