From 1fb9f3e1eb00494bef8f81fa0386e92672fdb4d5 Mon Sep 17 00:00:00 2001 From: Jihyun Yu Date: Sat, 31 Dec 2016 06:57:21 +0900 Subject: [PATCH] Fix copying vector on std::sort comparator (#3504) --- src/engine/plugins/tile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/plugins/tile.cpp b/src/engine/plugins/tile.cpp index a838c9dae..4970108fb 100644 --- a/src/engine/plugins/tile.cpp +++ b/src/engine/plugins/tile.cpp @@ -370,7 +370,7 @@ Status TilePlugin::HandleRequest(const std::shared_ptr bool { + [&edges](const std::size_t &left, const std::size_t &right) -> bool { return (edges[left].u != edges[right].u) ? edges[left].u < edges[right].u : edges[left].v < edges[right].v; });