summaryrefslogtreecommitdiffstats
path: root/configure.json
diff options
context:
space:
mode:
Diffstat (limited to 'configure.json')
-rw-r--r--configure.json8
1 files changed, 7 insertions, 1 deletions
diff --git a/configure.json b/configure.json
index 07514992d1..2dc79137e8 100644
--- a/configure.json
+++ b/configure.json
@@ -283,7 +283,13 @@
"#else",
"# error __cplusplus must be > 201402L (the value for C++14)",
"#endif",
- "#include <map> // https://bugs.llvm.org//show_bug.cgi?id=33117"
+ "#include <map> // https://bugs.llvm.org//show_bug.cgi?id=33117",
+ "#include <variant>"
+ ],
+ "main": [
+ "std::variant<int> v(42);",
+ "int i = std::get<int>(v);",
+ "std::visit([](const auto &) { return 1; }, v);"
],
"qmake": "CONFIG += c++11 c++14 c++1z"
}