Skip to content

Commit 1fb9f3e

Browse files
yjh0502TheMarex
authored andcommitted
Fix copying vector on std::sort comparator (#3504)
1 parent 6ea9f9f commit 1fb9f3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/engine/plugins/tile.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ Status TilePlugin::HandleRequest(const std::shared_ptr<datafacade::BaseDataFacad
370370
// as the sort condition
371371
std::sort(sorted_edge_indexes.begin(),
372372
sorted_edge_indexes.end(),
373-
[edges](const std::size_t &left, const std::size_t &right) -> bool {
373+
[&edges](const std::size_t &left, const std::size_t &right) -> bool {
374374
return (edges[left].u != edges[right].u) ? edges[left].u < edges[right].u
375375
: edges[left].v < edges[right].v;
376376
});

0 commit comments

Comments
 (0)