Skip to content

Commit 7c0ee8a

Browse files
Merge pull request #3324 from verilog-to-routing/rr_graph_sort_cpp17
Make t_rr_graph_storage::sort_edge compatible with C++17
2 parents 759e7aa + 8ad0068 commit 7c0ee8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libs/librrgraph/src/base/rr_graph_storage.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -835,7 +835,7 @@ class t_rr_graph_storage {
835835
vtr::StrongIdRange<RREdgeId> edge_range(RREdgeId(0), RREdgeId(num_edges));
836836
std::vector<RREdgeId> edge_indices(edge_range.begin(), edge_range.end());
837837

838-
std::ranges::stable_sort(edge_indices, comparison_function);
838+
std::stable_sort(edge_indices.begin(), edge_indices.end(), comparison_function);
839839

840840
// Generic lambda that allocates a 'vec'-sized new vector with all elements set to default value,
841841
// then builds the new vector to have rearranged elements from 'vec' and finaly move the new vector

0 commit comments

Comments
 (0)