[libcxx-commits] [libcxx] [libcxx] Implement `std::constant_wrapper` (PR #191695)
A. Jiang via libcxx-commits
libcxx-commits at lists.llvm.org
Sat Apr 18 12:47:53 PDT 2026
================
@@ -614,7 +614,7 @@ template <class _Tp, size_t _Extent>
# if _LIBCPP_STD_VER >= 26
template <class _Tp>
concept __integral_constant_like =
- is_integral_v<decltype(_Tp::value)> && !is_same_v<bool, remove_const_t<decltype(_Tp::value)>> &&
+ is_integral_v<remove_cvref_t<decltype(_Tp::value)>> && !is_same_v<bool, remove_const_t<decltype(_Tp::value)>> &&
----------------
frederick-vs-ja wrote:
[LWG4486](https://cplusplus.github.io/LWG/issue4486) (#189849) is related. But perhaps it also makes sense to separate the concepts when implementing `basic_vec` ([[simd.ctor]](https://eel.is/c++draft/simd.ctor)).
https://github.com/llvm/llvm-project/pull/191695
More information about the libcxx-commits
mailing list