From f9129fc1f9284bceef6ad542e4867aa63c549386 Mon Sep 17 00:00:00 2001 From: Avi Kivity Date: Sun, 4 Oct 2020 10:21:28 +0300 Subject: [PATCH] utils: to_range(): relax constraint The input range to utils::to_range() should be indeed a range, but clang has trouble compiling which causes it to fail. Relax the constraint until this is fixed. --- utils/ranges.hh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/utils/ranges.hh b/utils/ranges.hh index e7ca890700..f533cd203c 100644 --- a/utils/ranges.hh +++ b/utils/ranges.hh @@ -25,7 +25,13 @@ namespace ranges { +#ifndef __clang__ template +#else +// 'Range' should be constrained to std::ranges::range, but due to +// problems between clang and , it cannot be +template +#endif Container to(const Range& range) { return Container(range.begin(), range.end()); }