Skip to content

Commit ddb387b

Browse files
committed
Handle C++03
1 parent 3daa6c5 commit ddb387b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libcxx/include/__vector/vector.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -781,11 +781,13 @@ class _LIBCPP_TEMPLATE_VIS vector {
781781
_LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI void __move_assign_alloc(vector&, false_type) _NOEXCEPT {}
782782

783783
static _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI pointer __add_alignment_assumption(pointer __p) _NOEXCEPT {
784+
#ifndef _LIBCPP_CXX03_LANG
784785
if constexpr (is_pointer<pointer>::value) {
785786
if (!__libcpp_is_constant_evaluated()) {
786787
return static_cast<pointer>(__builtin_assume_aligned(__p, alignof(decltype(*__p))));
787788
}
788789
}
790+
#endif
789791
return __p;
790792
}
791793
};

0 commit comments

Comments
 (0)