comparator: workaround clang structured bindings ICE
This commit is contained in:
parent
3f8c490733
commit
86f6611f61
@ -64,7 +64,7 @@ namespace util::comparator {
|
||||
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.
|
||||
const auto &[i,j] = x; // BUG: clang-4.0: workaround for segfault.
|
||||
if (i < j) return true;
|
||||
if (i != j) return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user