[libcxx-commits] [libcxx] [libc++] Implement P3836R2: Make `optional<T&>` trivially copyable (PR #171528)

A. Jiang via libcxx-commits libcxx-commits at lists.llvm.org
Tue Dec 23 01:45:01 PST 2025


================
@@ -95,5 +110,12 @@ int main(int, char**) {
         NonTrivialTypes::ApplyTypes<DoTestsMetafunction>{},
         DoTestsMetafunction<TrivialMoveNonTrivialCopy, TrivialCopyNonTrivialMove>{}
     );
+
+#if TEST_STD_VER >= 26
----------------
frederick-vs-ja wrote:

Given that the properties are `static_assert`'d above, I think we can remove this part.

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


More information about the libcxx-commits mailing list