Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Fix build for Xcode 12 #16599

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,7 @@ workflows:
executors:
ubuntu-eoan:
docker:
# FIXME: Move the image to mbgl/
- image: tmpsantos/mbgl_ci:1.9
- image: mbxci/gl-native:c1ff30af1934135723b4ccb3ab97c2b68c0ef980
resource_class: xlarge
working_directory: /src
environment:
Expand Down
8 changes: 8 additions & 0 deletions include/mbgl/util/indexed_tuple.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,20 @@ class IndexedTuple<TypeList<Is...>, TypeList<Ts...>> : public std::tuple<Ts...>

template <class I>
auto& get() {
#if _WIN32
return std::get<TypeIndex<I, Is...>::value, Ts...>(*this);
#else
return std::get<TypeIndex<I, Is...>::value>(*this);
#endif
}

template <class I>
const auto& get() const {
#if _WIN32
return std::get<TypeIndex<I, Is...>::value, Ts...>(*this);
#else
return std::get<TypeIndex<I, Is...>::value>(*this);
#endif
}

template <class... Us>
Expand Down
1 change: 1 addition & 0 deletions platform/node/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ add_node_module(
72
79
83
88
)

target_sources(
Expand Down
2 changes: 1 addition & 1 deletion src/mbgl/style/expression/within.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Polygon<int64_t> getTilePolygon(const Polygon<double>& polygon,
for (const auto& ring : polygon) {
LinearRing<int64_t> temp;
temp.reserve(ring.size());
for (const auto p : ring) {
for (const auto& p : ring) {
const auto coord = latLonToTileCoodinates(p, canonical);
temp.push_back(coord);
updateBBox(bbox, coord);
Expand Down
10 changes: 5 additions & 5 deletions src/mbgl/tile/geometry_tile_data.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -198,15 +198,15 @@ GeometryCollection convertGeometry(const Feature::geometry_type& geometryTileFea
[&](const MultiPoint<double>& points) -> GeometryCollection {
MultiPoint<int16_t> result;
result.reserve(points.size());
for (const auto p : points) {
for (const auto& p : points) {
result.emplace_back(latLonToTileCoodinates(p));
}
return {std::move(result)};
},
[&](const LineString<double>& lineString) -> GeometryCollection {
LineString<int16_t> result;
result.reserve(lineString.size());
for (const auto p : lineString) {
for (const auto& p : lineString) {
result.emplace_back(latLonToTileCoodinates(p));
}
return {std::move(result)};
Expand All @@ -217,7 +217,7 @@ GeometryCollection convertGeometry(const Feature::geometry_type& geometryTileFea
for (const auto& line : lineStrings) {
LineString<int16_t> temp;
temp.reserve(line.size());
for (const auto p : line) {
for (const auto& p : line) {
temp.emplace_back(latLonToTileCoodinates(p));
}
result.emplace_back(temp);
Expand All @@ -230,7 +230,7 @@ GeometryCollection convertGeometry(const Feature::geometry_type& geometryTileFea
for (const auto& ring : polygon) {
LinearRing<int16_t> temp;
temp.reserve(ring.size());
for (const auto p : ring) {
for (const auto& p : ring) {
temp.emplace_back(latLonToTileCoodinates(p));
}
result.emplace_back(temp);
Expand All @@ -244,7 +244,7 @@ GeometryCollection convertGeometry(const Feature::geometry_type& geometryTileFea
for (const auto& r : pg) {
LinearRing<int16_t> ring;
ring.reserve(r.size());
for (const auto p : r) {
for (const auto& p : r) {
ring.emplace_back(latLonToTileCoodinates(p));
}
result.emplace_back(ring);
Expand Down