[libcxx-commits] [PATCH] D85420: [libcxx/variant] Introduce `switch`-based mechanism for `std::visit`.

Michael Park via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Thu Aug 6 04:40:06 PDT 2020


mpark added inline comments.


================
Comment at: libcxx/include/variant:490
+    _LIBCPP_UNREACHABLE();                                                     \
+  }
+      case _Base +  0: _LIBCPP_VARIANT_DISPATCH(_Base +  0);
----------------
xbolva00 wrote:
>  _LIBCPP_VARIANT_DISPATCH(__index);
> 
> ?
No, we need it to be a compile-time value.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D85420/new/

https://reviews.llvm.org/D85420



More information about the libcxx-commits mailing list