Skip to content

Commit 675ac1e

Browse files
committed
C++20 friendly
1 parent 479ba25 commit 675ac1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libcxx/test/benchmarks/GenerateInput.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ T random_different_from(std::initializer_list<T> others) {
210210
T value;
211211
do {
212212
value = Generate<T>::random();
213-
} while (std::ranges::contains(others, value));
213+
} while (std::find(others.begin(), others.end(), value) != others.end());
214214
return value;
215215
}
216216

0 commit comments

Comments
 (0)