comparator: workaround clang structured bindings ICE

This commit is contained in:
Danny Robson 2017-06-29 15:28:58 +10:00
parent 3f8c490733
commit 86f6611f61

View File

@ -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;
}