Skip to content

Commit 0c295e0

Browse files
committed
monostate
1 parent 2be93d3 commit 0c295e0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

arc.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ namespace arc {
6868
struct atom {
6969
enum type type = T_NIL;
7070
std::variant<
71+
std::monostate,
7172
std::shared_ptr<struct cons>,
7273
sym,
7374
double,
@@ -77,7 +78,7 @@ namespace arc {
7778
FILE *,
7879
std::shared_ptr<table>,
7980
char,
80-
jmp_buf *> val = 0.0;
81+
jmp_buf *> val;
8182

8283
template <typename T>
8384
T& asp() const { return *std::get<std::shared_ptr<T>>(val); }

0 commit comments

Comments
 (0)