diff --git a/src/storage/store/string_column.cpp b/src/storage/store/string_column.cpp index f2de00ea1c..f6073c515d 100644 --- a/src/storage/store/string_column.cpp +++ b/src/storage/store/string_column.cpp @@ -168,7 +168,8 @@ void StringColumn::scanValuesToVector(Transaction* transaction, node_group_idx_t firstOffsetToScan = offsetsToScan.front().first; lastOffsetToScan = offsetsToScan.back().first; } else { - const auto& [min, max] = std::ranges::minmax_element(offsetsToScan, comp); + const auto& [min, max] = + std::minmax_element(offsetsToScan.begin(), offsetsToScan.end(), comp); firstOffsetToScan = min->first; lastOffsetToScan = max->first; }