[Openmp-commits] [clang] [libc] [flang] [openmp] [lld] [llvm] [libcxx] [clang-tools-extra] [compiler-rt] [lldb] [libc++][variant] P2637R3: Member `visit` (`std::variant`) (PR #76447)

Mark de Wever via Openmp-commits openmp-commits at lists.llvm.org
Sat Jan 20 11:21:57 PST 2024


================
@@ -1267,7 +1267,11 @@ def add_version_header(tc):
         },
         {
             "name": "__cpp_lib_variant",
-            "values": {"c++17": 202102},
+            "values": {
+                "c++17": 202102,  # std::visit for classes derived from std::variant
+                # "c++20": 202106,  # Fully constexpr std::variant
+                # "c++26": 202306,  # Member visit
----------------
mordante wrote:

```suggestion
                # "c++26": 202306,  # Member visit (implemented)
```

https://github.com/llvm/llvm-project/pull/76447


More information about the Openmp-commits mailing list