git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Runtime minor cleanup
1ae76d6Andy Arvanitis
runtime/purescript.h−20
@@ -60,18 +60,6 @@ namespace purescript {
60 typename std::enable_if<std::is_assignable<std::function<boxed(void)>,T>::value>::type* = 0) : std::shared_ptr<void>(std::make_shared<eff_fn>(f)) {
60 typename std::enable_if<std::is_assignable<std::function<boxed(void)>,T>::value>::type* = 0) : std::shared_ptr<void>(std::make_shared<eff_fn>(f)) {
61 }
61 }
62
62
63− // operator int64_t() const {
64− // return *static_cast<int64_t*>(get());
65− // }
66− //
67− // operator double() const {
68− // return *static_cast<double*>(get());
69− // }
70− //
71− // operator bool() const {
72− // return *static_cast<bool*>(get());
73− // }
74−
75 template <typename T,
63 template <typename T,
76 typename = typename std::enable_if<!std::is_same<boxed,T>::value &&
64 typename = typename std::enable_if<!std::is_same<boxed,T>::value &&
77 std::is_convertible<T,fn>::value>::type>
65 std::is_convertible<T,fn>::value>::type>
@@ -124,14 +112,6 @@ namespace purescript {
124 return box<T>(unbox<T>(b));
112 return box<T>(unbox<T>(b));
125 }
113 }
126
114
127− // inline auto operator ==(const boxed& left, const int right) -> bool {
128− // return unbox<int64_t>(left) == right;
129− // }
130− //
131− // inline auto operator !=(const boxed& left, const int right) -> bool {
132− // return unbox<int64_t>(left) != right;
133− // }
134−
135 using fn_t = std::function<boxed(const boxed&)>;
115 using fn_t = std::function<boxed(const boxed&)>;
136 using dict_t = std::map<const string, boxed>;
116 using dict_t = std::map<const string, boxed>;
137 using array_t = std::deque<boxed>;
117 using array_t = std::deque<boxed>;