Skip to content

Commit ac56230

Browse files
committed
Use std::all_of.
1 parent 965ec63 commit ac56230

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tiledb/sm/filesystem/uri.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,8 @@ bool URI::is_timestamped_name() const {
211211
std::string t2 =
212212
part.substr(t1_separator + 1, t2_separator - t1_separator - 1);
213213
for (const auto& t : {t1, t2}) {
214-
if (!std::ranges::all_of(t, [](const char c) { return std::isdigit(c); })) {
214+
if (!std::all_of(
215+
t.begin(), t.end(), [](const char c) { return std::isdigit(c); })) {
215216
return false;
216217
}
217218
}

0 commit comments

Comments
 (0)