summary refs log tree commit diff stats
path: root/lib/token.h
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2022-12-14 10:19:40 -0500
committerStar Rauchenberger <fefferburbia@gmail.com>2022-12-14 10:19:40 -0500
commit6218b88920120dea23d605856b9d27f9deb4746c (patch)
tree657840cc60749db1e8ee453593211cd336462e98 /lib/token.h
parentc498cfa5cfd6408b465e45409987467b47b2b73d (diff)
downloadverbly-6218b88920120dea23d605856b9d27f9deb4746c.tar.gz
verbly-6218b88920120dea23d605856b9d27f9deb4746c.tar.bz2
verbly-6218b88920120dea23d605856b9d27f9deb4746c.zip
Migrate from mpark::variant to std::variant
Diffstat (limited to 'lib/token.h')
-rw-r--r--lib/token.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/token.h b/lib/token.h index 910a465..a18fe42 100644 --- a/lib/token.h +++ b/lib/token.h
@@ -5,7 +5,7 @@
5#include <string> 5#include <string>
6#include <list> 6#include <list>
7#include <set> 7#include <set>
8#include <variant.hpp> 8#include <variant>
9#include <hkutil/recptr.h> 9#include <hkutil/recptr.h>
10#include "enums.h" 10#include "enums.h"
11#include "word.h" 11#include "word.h"
@@ -38,7 +38,7 @@ namespace verbly {
38 bool isEmpty() const 38 bool isEmpty() const
39 { 39 {
40 return (type_ == type::utterance && 40 return (type_ == type::utterance &&
41 mpark::get<utterance_type>(variant_).empty()); 41 std::get<utterance_type>(variant_).empty());
42 } 42 }
43 43
44 // Word 44 // Word
@@ -153,7 +153,7 @@ namespace verbly {
153 }; 153 };
154 154
155 using variant_type = 155 using variant_type =
156 mpark::variant< 156 std::variant<
157 word_type, 157 word_type,
158 literal_type, 158 literal_type,
159 part, 159 part,