Partially revert "[llvm] Repair the modules build with C++17"

This reverts commit db008af501 because
this now breaks the non-module build...
This commit is contained in:
Jonas Devlieghere 2022-08-08 15:24:26 -07:00
parent c012408453
commit 860efb10b4
No known key found for this signature in database
GPG Key ID: 49CC0BD90FDEED4D
1 changed files with 2 additions and 2 deletions

View File

@ -725,8 +725,8 @@ class zip_shortest : public zip_common<zip_shortest<Iters...>, Iters...> {
template <size_t... Ns>
bool test(const zip_shortest<Iters...> &other,
std::index_sequence<Ns...>) const {
return all_of(std::array{std::get<Ns>(this->iterators) !=
std::get<Ns>(other.iterators)...},
return all_of(std::initializer_list<bool>{std::get<Ns>(this->iterators) !=
std::get<Ns>(other.iterators)...},
identity<bool>{});
}