Replace MAPBOX_ETERNAL_CONSTEXPR with constexpr (#2449)

This commit is contained in:
Bart Louwers
2024-06-03 20:50:14 +02:00
committed by GitHub
parent 345da03dcc
commit 028c26ee60
17 changed files with 54 additions and 55 deletions

View File

@@ -59,9 +59,8 @@ FeatureExtensionValue getClusterExpansionZoom(std::shared_ptr<style::GeoJSONData
return Value{static_cast<uint64_t>(clusterData->getClusterExpansionZoom(clusterID))};
}
MAPBOX_ETERNAL_CONSTEXPR const auto extensionGetters =
mapbox::eternal::hash_map<mapbox::eternal::string, FeatureExtensionGetterPtr>(
{{"children", &getChildren}, {"leaves", &getLeaves}, {"expansion-zoom", &getClusterExpansionZoom}});
constexpr const auto extensionGetters = mapbox::eternal::hash_map<mapbox::eternal::string, FeatureExtensionGetterPtr>(
{{"children", &getChildren}, {"leaves", &getLeaves}, {"expansion-zoom", &getClusterExpansionZoom}});
} // namespace