git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
C++: make map key type const
commit120a22eaf7654156d2ab7f5c75fa1054d1fbfb6d authorAndy Arvanitis <andyarvanitis@gmail.com> dateSun 10 Jan 2016, 18:59 (11 years ago) parent769e5e3
1 file changed+1−1
pcc/include/purescript.hh+1−1
pcc/include/purescript.hh+1−1
@@ -67,7 +67,7 @@ class any {
6767 };
6868 static constexpr as_thunk unthunk = as_thunk{};
6969
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>;
7171 using vector = std::vector<any>;
7272 using fn = std::function<any(const any&)>;
7373 using eff_fn = std::function<any()>;