[libcxx-commits] [lld] [clang] [llvm] [compiler-rt] [openmp] [lldb] [clang-tools-extra] [flang] [libc] [libcxx] [libc++][variant] P2637R3: Member `visit` (`std::variant`) (PR #76447)
Mark de Wever via libcxx-commits
libcxx-commits at lists.llvm.org
Sat Jan 20 11:21:55 PST 2024
================
@@ -1130,6 +1137,19 @@ using __best_match_t = typename invoke_result_t<_MakeOverloads<_Types...>, _Tp,
} // namespace __variant_detail
+template < class _Visitor, class... _Vs, typename = void_t<decltype(std::__as_variant(std::declval<_Vs>()))...> >
----------------
mordante wrote:
Clang-format needs to be compatible with C++03, but this is C++17 so we can remove some spaces.
```suggestion
template <class _Visitor, class... _Vs, typename = void_t<decltype(std::__as_variant(std::declval<_Vs>()))...>>
```
https://github.com/llvm/llvm-project/pull/76447
More information about the libcxx-commits
mailing list