diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2022-12-14 10:19:40 -0500 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2022-12-14 10:42:27 -0500 |
commit | e4fe5974f123cfba6d8eff908e7f1772b0b9635f (patch) | |
tree | 69477cee57289107f2081eafecb95ffbcb4c47fa /lib/form.cpp | |
parent | 2f938ddd17190497e21194a0ef3e1cfa14f68943 (diff) | |
download | verbly-e4fe5974f123cfba6d8eff908e7f1772b0b9635f.tar.gz verbly-e4fe5974f123cfba6d8eff908e7f1772b0b9635f.tar.bz2 verbly-e4fe5974f123cfba6d8eff908e7f1772b0b9635f.zip |
Migrate from mpark::variant to std::variant
Diffstat (limited to 'lib/form.cpp')
-rw-r--r-- | lib/form.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/form.cpp b/lib/form.cpp index 06a00b9..256dc59 100644 --- a/lib/form.cpp +++ b/lib/form.cpp | |||
@@ -30,11 +30,11 @@ namespace verbly { | |||
30 | 30 | ||
31 | form::form(const database& db, hatkirby::row row) : valid_(true) | 31 | form::form(const database& db, hatkirby::row row) : valid_(true) |
32 | { | 32 | { |
33 | id_ = mpark::get<int>(row[0]); | 33 | id_ = std::get<int>(row[0]); |
34 | text_ = mpark::get<std::string>(row[1]); | 34 | text_ = std::get<std::string>(row[1]); |
35 | complexity_ = mpark::get<int>(row[2]); | 35 | complexity_ = std::get<int>(row[2]); |
36 | proper_ = (mpark::get<int>(row[3]) == 1); | 36 | proper_ = (std::get<int>(row[3]) == 1); |
37 | length_ = mpark::get<int>(row[4]); | 37 | length_ = std::get<int>(row[4]); |
38 | 38 | ||
39 | pronunciations_ = db.pronunciations(*this, pronunciation::id, -1).all(); | 39 | pronunciations_ = db.pronunciations(*this, pronunciation::id, -1).all(); |
40 | } | 40 | } |