git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Fix gcc issues with runtime constructors
commit3ad4c2ab6c0301ccab3b4bb87dbf5f9d12f891e9 authorAndy Arvanitis <andyarvanitis@gmail.com> dateSun 19 Aug 2018, 18:00 (8 years ago) parent5264394
1 file changed+7−5
runtime/purescript.h+7−5
runtime/purescript.h+7−5
@@ -20,8 +20,7 @@
2020#include <deque>
2121#include <map>
2222#include <string>
23−
24−#include <iostream>
23+#include <limits>
2524
2625namespace purescript {
2726
@@ -38,6 +37,12 @@ namespace purescript {
3837 public:
3938 using std::shared_ptr<void>::shared_ptr;
4039
40+ boxed() noexcept : std::shared_ptr<void>() {
41+ }
42+
43+ boxed(const std::nullptr_t) noexcept : std::shared_ptr<void>() {
44+ }
45+
4146 boxed(const int n) : std::shared_ptr<void>(std::make_shared<int>(n)) {
4247 }
4348
@@ -61,9 +66,6 @@ namespace purescript {
6166 boxed(string&& s) : std::shared_ptr<void>(std::make_shared<string>(std::move(s))) {
6267 }
6368
64− boxed(const std::nullptr_t) : std::shared_ptr<void>() {
65− }
66−
6769 boxed(array_t&& l) : std::shared_ptr<void>(std::make_shared<array_t>(std::move(l))) {
6870 }
6971