Skip to content

Commit 8d5bf8a

Browse files
committed
changed C++20 codes to be backward compatible
Signed-off-by: Cho Moon <[email protected]>
1 parent ad54505 commit 8d5bf8a

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/mpl/src/clusterEngine.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1858,8 +1858,8 @@ bool ClusteringEngine::sameConnectionSignature(Cluster* a, Cluster* b) const
18581858
return false;
18591859
}
18601860

1861-
std::ranges::sort(a_neighbors);
1862-
std::ranges::sort(b_neighbors);
1861+
std::sort(a_neighbors.begin(), a_neighbors.end());
1862+
std::sort(b_neighbors.begin(), b_neighbors.end());
18631863

18641864
for (int i = 0; i < a_neighbors.size(); i++) {
18651865
if (a_neighbors[i] != b_neighbors[i]) {
@@ -1950,8 +1950,9 @@ Cluster* ClusteringEngine::findSingleWellFormedConnectedCluster(
19501950
}
19511951

19521952
if (strongConnection(target_cluster, candidate, &connection_weight)) {
1953-
auto small_child_found
1954-
= std::ranges::find(small_clusters_id_list, cluster_id);
1953+
auto small_child_found = std::find(small_clusters_id_list.begin(),
1954+
small_clusters_id_list.end(),
1955+
cluster_id);
19551956

19561957
// A small child is not well-formed, so we avoid them.
19571958
if (small_child_found == small_clusters_id_list.end()) {

0 commit comments

Comments
 (0)