@@ -1582,7 +1582,7 @@ vector<_Tp, _Allocator>::erase(const_iterator __position) {
1582
1582
// destroy the element at __p
1583
1583
__alloc_traits::destroy (__alloc (), std::__to_address (__p));
1584
1584
// move the rest down
1585
- (void ) relocate (__p + 1 , this ->__end_ , __p);
1585
+ (void ) relocate (std::__to_address ( __p + 1 ), std::__to_address ( this ->__end_ ), std::__to_address ( __p) );
1586
1586
// update the end
1587
1587
this ->__end_ --;
1588
1588
__annotate_shrink (__old_size);
@@ -1647,7 +1647,7 @@ vector<_Tp, _Allocator>::insert(const_iterator __position, const_reference __x)
1647
1647
if constexpr (is_trivially_relocatable_v<_Tp> || is_nothrow_move_constructible_v<_Tp>) {
1648
1648
// Make space by trivially relocating everything
1649
1649
_ConstructTransaction __tx (*this , 1 );
1650
- (void ) relocate (std::__to_address (__p), std::__to_address (this ->__end_ ), __p + 1 );
1650
+ (void ) relocate (std::__to_address (__p), std::__to_address (this ->__end_ ), std::__to_address ( __p + 1 ) );
1651
1651
// construct the new element (not assign!)
1652
1652
const_pointer __xr = pointer_traits<const_pointer>::pointer_to (__x);
1653
1653
if (std::__is_pointer_in_range (std::__to_address (__p), std::__to_address (__end_), std::addressof (__x)))
@@ -1687,7 +1687,7 @@ vector<_Tp, _Allocator>::insert(const_iterator __position, value_type&& __x) {
1687
1687
if constexpr (is_trivially_relocatable_v<_Tp> || is_nothrow_move_constructible_v<_Tp>) {
1688
1688
// Make space by trivially relocating everything
1689
1689
_ConstructTransaction __tx (*this , 1 );
1690
- (void ) relocate (std::__to_address (__p), std::__to_address (this ->__end_ ), __p + 1 );
1690
+ (void ) relocate (std::__to_address (__p), std::__to_address (this ->__end_ ), std::__to_address ( __p + 1 ) );
1691
1691
// construct the new element (not assign!)
1692
1692
__alloc_traits::construct (this ->__alloc (), std::__to_address (__p), std::forward<value_type>(__x));
1693
1693
++__tx.__pos_ ;
@@ -1722,7 +1722,7 @@ vector<_Tp, _Allocator>::emplace(const_iterator __position, _Args&&... __args) {
1722
1722
if constexpr (is_trivially_relocatable_v<_Tp> || is_nothrow_move_constructible_v<_Tp>) {
1723
1723
// Make space by trivially relocating everything
1724
1724
_ConstructTransaction __tx (*this , 1 );
1725
- (void ) relocate (std::__to_address (__p), std::__to_address (this ->__end_ ), __p + 1 );
1725
+ (void ) relocate (std::__to_address (__p), std::__to_address (this ->__end_ ), std::__to_address ( __p + 1 ) );
1726
1726
// construct the new element
1727
1727
__alloc_traits::construct (this ->__alloc (), std::__to_address (__p), std::forward<_Args>(__args)...);
1728
1728
++__tx.__pos_ ;
0 commit comments