diff options
author | John Hodge <tpg@mutabah.net> | 2016-03-20 12:29:44 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-03-20 12:29:44 +0800 |
commit | b79e71e5f11e14516f13ea2f8437d5deaa10e653 (patch) | |
tree | 3097c0251c83e32e4e673a840f5708110a8adc4c /src/ast/attrs.hpp | |
parent | 0ee80748a3dcb97f308e9b0b71c22d28868d12cf (diff) | |
download | mrust-b79e71e5f11e14516f13ea2f8437d5deaa10e653.tar.gz |
Tagged Union - Rework to remove indirection
Diffstat (limited to 'src/ast/attrs.hpp')
-rw-r--r-- | src/ast/attrs.hpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ast/attrs.hpp b/src/ast/attrs.hpp index b7b7f91c..6a6cdaa7 100644 --- a/src/ast/attrs.hpp +++ b/src/ast/attrs.hpp @@ -40,13 +40,13 @@ public: TAGGED_UNION(MetaItemData, None, - (None, ()), - (String, ( + (None, struct {}), + (String, struct { ::std::string val; - )), - (List, ( + }), + (List, struct { ::std::vector<MetaItem> sub_items; - )) + }) ); class MetaItem: |