We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d83d1cb commit 9917d39Copy full SHA for 9917d39
libcxx/include/experimental/__simd/aligned_tag.h
@@ -11,6 +11,7 @@
11
#define _LIBCPP_EXPERIMENTAL___SIMD_ALIGNED_TAG_H
12
13
#include <__memory/assume_aligned.h>
14
+#include <__type_traits/remove_const.h>
15
#include <cstddef>
16
#include <experimental/__config>
17
#include <experimental/__simd/traits.h>
@@ -35,7 +36,7 @@ inline constexpr bool is_simd_flag_type_v<element_aligned_tag> = true;
35
36
37
struct vector_aligned_tag {
38
template <class _Tp, class _Up = typename _Tp::value_type>
- static constexpr size_t __alignment = memory_alignment_v<_Tp, _Up>;
39
+ static constexpr size_t __alignment = memory_alignment_v<_Tp, remove_const_t<_Up>>;
40
41
template <class _Tp, class _Up>
42
static _LIBCPP_HIDE_FROM_ABI constexpr _Up* __apply(_Up* __ptr) {
0 commit comments