Skip to content

Commit 8f05f2a

Browse files
committed
C++20 friendly
1 parent c355ebe commit 8f05f2a

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
@@ -209,7 +209,7 @@ T random_different_from(std::initializer_list<T> others) {
209209
T value;
210210
do {
211211
value = Generate<T>::random();
212-
} while (std::ranges::contains(others, value));
212+
} while (std::find(others.begin(), others.end(), value) != others.end());
213213
return value;
214214
}
215215

0 commit comments

Comments
 (0)