From 37892b11a45edcb73aa75ca671f30233f32b914b Mon Sep 17 00:00:00 2001 From: Gali Nelle Date: Fri, 11 Feb 2022 11:58:00 +0200 Subject: [PATCH] Add hash function for null_value_t This will make feature::identifier hashable --- include/mapbox/feature.hpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/include/mapbox/feature.hpp b/include/mapbox/feature.hpp index 68b23f8..512367e 100644 --- a/include/mapbox/feature.hpp +++ b/include/mapbox/feature.hpp @@ -222,3 +222,14 @@ struct feature_collection : Cont> } // namespace feature } // namespace mapbox + +namespace std { +template <> +struct hash +{ + size_t operator()(const mapbox::feature::null_value_t&) const + { + return 779711298111120; + } +}; +} // namespace std