diff --git a/mapbox-gl-native-ios/platform/ios/ios.xcodeproj/project.pbxproj b/mapbox-gl-native-ios/platform/ios/ios.xcodeproj/project.pbxproj index f741d029d..22578ad62 100644 --- a/mapbox-gl-native-ios/platform/ios/ios.xcodeproj/project.pbxproj +++ b/mapbox-gl-native-ios/platform/ios/ios.xcodeproj/project.pbxproj @@ -3823,6 +3823,7 @@ CURRENT_PROJECT_VERSION = 15256; DEBUG_INFORMATION_FORMAT = dwarf; ENABLE_TESTABILITY = YES; + "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = arm64; GCC_OPTIMIZATION_LEVEL = 0; GCC_PREPROCESSOR_DEFINITIONS = ( "DEBUG=1", @@ -3847,6 +3848,7 @@ CURRENT_PROJECT_VERSION = 15256; DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; ENABLE_NS_ASSERTIONS = NO; + "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = arm64; GCC_PREPROCESSOR_DEFINITIONS = ""; "GCC_PREPROCESSOR_DEFINITIONS[arch=*]" = ""; IPHONEOS_DEPLOYMENT_TARGET = 9.0; diff --git a/mapbox-gl-native/include/mbgl/util/indexed_tuple.hpp b/mapbox-gl-native/include/mbgl/util/indexed_tuple.hpp index 99d73d1e1..fc22d1ee3 100644 --- a/mapbox-gl-native/include/mbgl/util/indexed_tuple.hpp +++ b/mapbox-gl-native/include/mbgl/util/indexed_tuple.hpp @@ -30,12 +30,12 @@ public: template auto& get() { - return std::get::value, Ts...>(*this); + return std::get::value>(*this); } template const auto& get() const { - return std::get::value, Ts...>(*this); + return std::get::value>(*this); } template diff --git a/mapbox-gl-native/src/mbgl/style/expression/within.cpp b/mapbox-gl-native/src/mbgl/style/expression/within.cpp index 2b8a6a65b..b66015465 100644 --- a/mapbox-gl-native/src/mbgl/style/expression/within.cpp +++ b/mapbox-gl-native/src/mbgl/style/expression/within.cpp @@ -39,7 +39,7 @@ Polygon getTilePolygon(const Polygon& polygon, for (const auto& ring : polygon) { LinearRing 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); diff --git a/mapbox-gl-native/src/mbgl/tile/geometry_tile_data.cpp b/mapbox-gl-native/src/mbgl/tile/geometry_tile_data.cpp index 472b07739..c7be54d82 100644 --- a/mapbox-gl-native/src/mbgl/tile/geometry_tile_data.cpp +++ b/mapbox-gl-native/src/mbgl/tile/geometry_tile_data.cpp @@ -198,7 +198,7 @@ GeometryCollection convertGeometry(const Feature::geometry_type& geometryTileFea [&](const MultiPoint& points) -> GeometryCollection { MultiPoint result; result.reserve(points.size()); - for (const auto p : points) { + for (const auto& p : points) { result.emplace_back(latLonToTileCoodinates(p)); } return {std::move(result)}; @@ -206,7 +206,7 @@ GeometryCollection convertGeometry(const Feature::geometry_type& geometryTileFea [&](const LineString& lineString) -> GeometryCollection { LineString result; result.reserve(lineString.size()); - for (const auto p : lineString) { + for (const auto& p : lineString) { result.emplace_back(latLonToTileCoodinates(p)); } return {std::move(result)}; @@ -217,7 +217,7 @@ GeometryCollection convertGeometry(const Feature::geometry_type& geometryTileFea for (const auto& line : lineStrings) { LineString temp; temp.reserve(line.size()); - for (const auto p : line) { + for (const auto& p : line) { temp.emplace_back(latLonToTileCoodinates(p)); } result.emplace_back(temp); @@ -230,7 +230,7 @@ GeometryCollection convertGeometry(const Feature::geometry_type& geometryTileFea for (const auto& ring : polygon) { LinearRing temp; temp.reserve(ring.size()); - for (const auto p : ring) { + for (const auto& p : ring) { temp.emplace_back(latLonToTileCoodinates(p)); } result.emplace_back(temp); @@ -244,7 +244,7 @@ GeometryCollection convertGeometry(const Feature::geometry_type& geometryTileFea for (const auto& r : pg) { LinearRing ring; ring.reserve(r.size()); - for (const auto p : r) { + for (const auto& p : r) { ring.emplace_back(latLonToTileCoodinates(p)); } result.emplace_back(ring);