Skip to content

Commit 435858a

Browse files
committed
Avoid invoking operator,
1 parent e2ec5a0 commit 435858a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libcxx/include/__vector/vector.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1018,7 +1018,7 @@ template <class _Iterator, class _Sentinel>
10181018
_LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI void
10191019
vector<_Tp, _Allocator>::__assign_with_sentinel(_Iterator __first, _Sentinel __last) {
10201020
pointer __cur = __begin_;
1021-
for (; __first != __last && __cur != __end_; ++__cur, ++__first)
1021+
for (; __first != __last && __cur != __end_; ++__first, (void)++__cur)
10221022
*__cur = *__first;
10231023
if (__cur != __end_)
10241024
__destruct_at_end(__cur);

0 commit comments

Comments
 (0)