[libcxx-commits] [libcxx] [libc++][NFC] Update <any> to a more modern code style (PR #174619)
A. Jiang via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Jan 20 01:32:52 PST 2026
================
@@ -201,25 +201,31 @@ public:
__other.__call(_Action::_Move, this);
}
- template < class _ValueType,
- class _Tp = decay_t<_ValueType>,
- class = enable_if_t< !is_same<_Tp, any>::value && !__is_inplace_type<_ValueType>::value &&
----------------
frederick-vs-ja wrote:
Changing to use `_And` and `_Not` will fix #176877. [Godbolt link](https://gcc.godbolt.org/z/jjMYfdfWv).
https://github.com/llvm/llvm-project/pull/174619
More information about the libcxx-commits
mailing list