Fix Issue#5864 build errors on mac OS (#5865)

* Fix Issue#5864 build errors on mac OS

Co-authored-by: Guannan Du <guannan.du@Guannans-MacBook-Pro-2.local>
This commit is contained in:
Guannan Du 2020-10-21 07:00:55 -07:00 committed by GitHub
parent 9f80f6d64d
commit 1ba8aba466
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -226,7 +226,7 @@ std::unordered_set<EdgeID> findSegregatedNodes(const extractor::NodeBasedGraphFa
auto const collect_edge_info_fn = [&](auto const &edges1, NodeID node2) {
std::vector<EdgeInfo> info;
for (auto const &e : edges1)
for (auto e : edges1)
{
NodeID const target = graph.GetTarget(e);
if (target == node2)

View File

@ -154,7 +154,7 @@ boost::optional<struct tm> Timezoner::operator()(const point_t &point) const
{
std::vector<rtree_t::value_type> result;
rtree.query(boost::geometry::index::intersects(point), std::back_inserter(result));
for (const auto v : result)
for (const auto &v : result)
{
const auto index = v.second;
if (boost::geometry::within(point, local_times[index].first))