git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
C++: rename del() runtime helper to destruct()
c7b7412Andy Arvanitis
pcc/include/purescript.hh+4−4
@@ -232,7 +232,7 @@ class any {
232 }
232 }
233 }
233 }
234
234
235− auto del() noexcept -> void {
235+ auto destruct() noexcept -> void {
236 if (is_shared) {
236 if (is_shared) {
237 p.~shared<void>();
237 p.~shared<void>();
238 }
238 }
@@ -249,7 +249,7 @@ class any {
249 }
249 }
250
250
251 auto operator=(const any& rhs) -> any& {
251 auto operator=(const any& rhs) -> any& {
252− del();
252+ destruct();
253 type = rhs.type;
253 type = rhs.type;
254 is_shared = rhs.is_shared;
254 is_shared = rhs.is_shared;
255 copy(rhs);
255 copy(rhs);
@@ -257,7 +257,7 @@ class any {
257 }
257 }
258
258
259 auto operator=(any&& rhs) noexcept -> any& {
259 auto operator=(any&& rhs) noexcept -> any& {
260− del();
260+ destruct();
261 type = rhs.type;
261 type = rhs.type;
262 is_shared = rhs.is_shared;
262 is_shared = rhs.is_shared;
263 move(rhs);
263 move(rhs);
@@ -267,7 +267,7 @@ class any {
267 any() = delete;
267 any() = delete;
268
268
269 ~any() {
269 ~any() {
270− del();
270+ destruct();
271 }
271 }
272
272
273 template <typename T>
273 template <typename T>