================ @@ -69,6 +69,12 @@ namespace std { // 20.7.2.6, swap void swap(variant&) noexcept(see below); + + // [variant.visit], visitation + template<class Self, class Visitor> + constexpr decltype(auto) visit(this Self&&, Visitor&&); + template<class R, class Self, class Visitor> + constexpr R visit(this Self&&, Visitor&&); ---------------- mordante wrote:
```suggestion template<class Self, class Visitor> constexpr decltype(auto) visit(this Self&&, Visitor&&); // Since C++26 template<class R, class Self, class Visitor> constexpr R visit(this Self&&, Visitor&&); // Since C++26 ``` https://github.com/llvm/llvm-project/pull/76447 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits