[libcxx-commits] [libcxx] [libc++] <experimental/simd> Fix vector_aligned_tag to pass #76610 (PR #76611)
Nikolas Klauser via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Jan 16 09:01:41 PST 2024
================
@@ -35,7 +36,7 @@ inline constexpr bool is_simd_flag_type_v<element_aligned_tag> = true;
struct vector_aligned_tag {
template <class _Tp, class _Up = typename _Tp::value_type>
- static constexpr size_t __alignment = memory_alignment_v<_Tp, _Up>;
+ static constexpr size_t __alignment = memory_alignment_v<_Tp, std::remove_const_t<_Up>>;
----------------
philnik777 wrote:
```suggestion
static constexpr size_t __alignment = memory_alignment_v<_Tp, remove_const_t<_Up>>;
```
https://github.com/llvm/llvm-project/pull/76611
More information about the libcxx-commits
mailing list