git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
C++: make map key type const
120a22eAndy Arvanitis
pcc/include/purescript.hh+1−1
@@ -67,7 +67,7 @@ class any {
67 };
67 };
68 static constexpr as_thunk unthunk = as_thunk{};
68 static constexpr as_thunk unthunk = as_thunk{};
69
69
70− using map = std::unordered_map<map_key_t, const any, map_key_t::hasher, map_key_t::equal>;
70+ using map = std::unordered_map<const map_key_t, const any, map_key_t::hasher, map_key_t::equal>;
71 using vector = std::vector<any>;
71 using vector = std::vector<any>;
72 using fn = std::function<any(const any&)>;
72 using fn = std::function<any(const any&)>;
73 using eff_fn = std::function<any()>;
73 using eff_fn = std::function<any()>;