[libcxx-commits] [libcxx] [libc++] Implement LWG2991: variant copy constructor missing noexcept(see below) (PR #230241)
A. Jiang via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Oct 9 05:58:06 PDT 2026
================
@@ -70,6 +80,11 @@ struct TCopyNTMove {
static_assert(std::is_trivially_copy_constructible<TCopyNTMove>::value, "");
+static_assert(std::is_nothrow_copy_constructible_v<std::variant<int, long>>);
----------------
frederick-vs-ja wrote:
I think it's better to move these immediately above or below `test_copy_ctor_sfinae` (which should be in refactored into plain `static_assert`'s in a future PR, though).
https://github.com/llvm/llvm-project/pull/230241
More information about the libcxx-commits
mailing list