From 8ad00687d7936b2ee57f356c6ed889fe7f6c3433 Mon Sep 17 00:00:00 2001 From: Amir Poolad Date: Tue, 28 Oct 2025 13:02:15 -0400 Subject: [PATCH] Make t_rr_graph_storage::sort_edge compatible with C++17 --- libs/librrgraph/src/base/rr_graph_storage.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/librrgraph/src/base/rr_graph_storage.h b/libs/librrgraph/src/base/rr_graph_storage.h index ceabb21f65..ab1c844cd1 100644 --- a/libs/librrgraph/src/base/rr_graph_storage.h +++ b/libs/librrgraph/src/base/rr_graph_storage.h @@ -835,7 +835,7 @@ class t_rr_graph_storage { vtr::StrongIdRange edge_range(RREdgeId(0), RREdgeId(num_edges)); std::vector edge_indices(edge_range.begin(), edge_range.end()); - std::ranges::stable_sort(edge_indices, comparison_function); + std::stable_sort(edge_indices.begin(), edge_indices.end(), comparison_function); // Generic lambda that allocates a 'vec'-sized new vector with all elements set to default value, // then builds the new vector to have rearranged elements from 'vec' and finaly move the new vector