git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Fix gcc issues with runtime constructors
3ad4c2aAndy Arvanitis
runtime/purescript.h+7−5
@@ -20,8 +20,7 @@
20#include <deque>
20#include <deque>
21#include <map>
21#include <map>
22#include <string>
22#include <string>
23−
24−#include <iostream>
23+#include <limits>
25
24
26namespace purescript {
25namespace purescript {
27
26
@@ -38,6 +37,12 @@ namespace purescript {
38 public:
37 public:
39 using std::shared_ptr<void>::shared_ptr;
38 using std::shared_ptr<void>::shared_ptr;
40
39
40+ boxed() noexcept : std::shared_ptr<void>() {
41+ }
42+
43+ boxed(const std::nullptr_t) noexcept : std::shared_ptr<void>() {
44+ }
45+
41 boxed(const int n) : std::shared_ptr<void>(std::make_shared<int>(n)) {
46 boxed(const int n) : std::shared_ptr<void>(std::make_shared<int>(n)) {
42 }
47 }
43
48
@@ -61,9 +66,6 @@ namespace purescript {
61 boxed(string&& s) : std::shared_ptr<void>(std::make_shared<string>(std::move(s))) {
66 boxed(string&& s) : std::shared_ptr<void>(std::make_shared<string>(std::move(s))) {
62 }
67 }
63
68
64− boxed(const std::nullptr_t) : std::shared_ptr<void>() {
65− }
66−
67 boxed(array_t&& l) : std::shared_ptr<void>(std::make_shared<array_t>(std::move(l))) {
69 boxed(array_t&& l) : std::shared_ptr<void>(std::make_shared<array_t>(std::move(l))) {
68 }
70 }
69
71