[libcxx-commits] [libcxx] [libc++] Fix std::variant evaluating template arguments too eagerly (PR #151028)

Nikolas Klauser via libcxx-commits libcxx-commits at lists.llvm.org
Tue Aug 5 01:01:42 PDT 2025


================
@@ -1182,13 +1182,21 @@ public:
   _LIBCPP_HIDE_FROM_ABI constexpr variant(const variant&) = default;
   _LIBCPP_HIDE_FROM_ABI constexpr variant(variant&&)      = default;
 
-  template < class _Arg,
----------------
philnik777 wrote:

This doesn't work. I'm going with the original for now and we can take another look later.

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


More information about the libcxx-commits mailing list