git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Merge remote-tracking branch 'pure11/pure11' into native
commit3e3783ab31df74d0cefccdc8cfccd442eecb4625 authorAndy Arvanitis <andyarvanitis@gmail.com> dateFri 3 Feb 2017, 12:14 (10 years ago) parent7be66c106709aa
2 files changed+2−2
pcc/runtime/purescript.hh+1−1 pcc/runtime/purescript_memory.hh+1−1
pcc/runtime/purescript.hh+1−1
@@ -133,7 +133,7 @@ class any {
133133 using record = std::map<const char *,
134134 any,
135135 cstr_cmp
136− WITH_ALLOCATOR_PAIR(const char *, any)>;
136+ WITH_ALLOCATOR_PAIR(char * const, any)>;
137137
138138 using fn = auto (*)(const any&) -> any;
139139 using eff_fn = auto (*)() -> any;
pcc/runtime/purescript_memory.hh+1−1
@@ -20,7 +20,7 @@
2020 #include <gc/gc_cpp.h>
2121 #include <gc/gc_allocator.h>
2222 #define WITH_ALLOCATOR(T) , gc_allocator<T>
23− #define WITH_ALLOCATOR_PAIR(T, U) , std::hash<T>, std::equal_to<T>, gc_allocator<std::pair<const T, U>>
23+ #define WITH_ALLOCATOR_PAIR(T, U) , gc_allocator<std::pair<const T, U>>
2424 #define MANAGED_TYPE(T) T*
2525 #define MAKE_MANAGED(T) new (GC) T
2626 #define MAKE_MANAGED_FINALIZED(T) new (PointerFreeGC, [](void* p, void*){ static_cast<T*>(p)->~T(); }) T