git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
C++: rename del() runtime helper to destruct()
commitc7b7412573e8df61a5bc70f2310759db8df26b28 authorAndy Arvanitis <andyarvanitis@gmail.com> dateSat 16 Apr 2016, 14:11 (11 years ago) parent7f8c2d8
1 file changed+4−4
pcc/include/purescript.hh+4−4
pcc/include/purescript.hh+4−4
@@ -232,7 +232,7 @@ class any {
232232 }
233233 }
234234
235− auto del() noexcept -> void {
235+ auto destruct() noexcept -> void {
236236 if (is_shared) {
237237 p.~shared<void>();
238238 }
@@ -249,7 +249,7 @@ class any {
249249 }
250250
251251 auto operator=(const any& rhs) -> any& {
252− del();
252+ destruct();
253253 type = rhs.type;
254254 is_shared = rhs.is_shared;
255255 copy(rhs);
@@ -257,7 +257,7 @@ class any {
257257 }
258258
259259 auto operator=(any&& rhs) noexcept -> any& {
260− del();
260+ destruct();
261261 type = rhs.type;
262262 is_shared = rhs.is_shared;
263263 move(rhs);
@@ -267,7 +267,7 @@ class any {
267267 any() = delete;
268268
269269 ~any() {
270− del();
270+ destruct();
271271 }
272272
273273 template <typename T>