We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3daa6c5 commit ddb387bCopy full SHA for ddb387b
libcxx/include/__vector/vector.h
@@ -781,11 +781,13 @@ class _LIBCPP_TEMPLATE_VIS vector {
781
_LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI void __move_assign_alloc(vector&, false_type) _NOEXCEPT {}
782
783
static _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI pointer __add_alignment_assumption(pointer __p) _NOEXCEPT {
784
+#ifndef _LIBCPP_CXX03_LANG
785
if constexpr (is_pointer<pointer>::value) {
786
if (!__libcpp_is_constant_evaluated()) {
787
return static_cast<pointer>(__builtin_assume_aligned(__p, alignof(decltype(*__p))));
788
}
789
790
+#endif
791
return __p;
792
793
};
0 commit comments