[libcxx-commits] [libcxx] [libc++] Fix `tuple_cat` for element with unconstrained constructor (PR #122433)

A. Jiang via libcxx-commits libcxx-commits at lists.llvm.org
Tue Jan 14 03:15:53 PST 2025


================
@@ -31,6 +31,70 @@ template<typename ...Ts>
 void forward_as_tuple(Ts...) = delete;
 }
 
+// https://github.com/llvm/llvm-project/issues/41034
+struct Unconstrained {
+  int data;
+  template <typename Arg>
+  TEST_CONSTEXPR_CXX14 Unconstrained(Arg arg) : data(arg) {}
+};
+
+TEST_CONSTEXPR_CXX14 std::tuple<Unconstrained> test_cat_unary_lvalue() {
----------------
frederick-vs-ja wrote:

Inlined.

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


More information about the libcxx-commits mailing list