================ @@ -0,0 +1,30 @@ +// RUN: %clang_cc1 -fsyntax-only -std=c++2b -verify %s + +namespace std { +struct rv {}; + +template <bool B, typename T> struct enable_if; +template <typename T> struct enable_if<true, T> { typedef T type; }; + +template <typename U, typename T> +typename enable_if<__is_convertible(T, rv), U>::type forward(T &); +template <typename U, typename T> +typename enable_if<!__is_convertible(T, rv), U &>::type forward(T &); +} ---------------- cor3ntin wrote:
You can get rid of all of that https://github.com/llvm/llvm-project/pull/104328 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits