]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Qualify addressof calls in inplace_vector [PR119137]
authorTomasz Kamiński <tkaminsk@redhat.com>
Fri, 18 Jul 2025 13:32:04 +0000 (15:32 +0200)
committerTomasz Kamiński <tkaminsk@redhat.com>
Fri, 18 Jul 2025 13:32:04 +0000 (15:32 +0200)
PR libstdc++/119137

libstdc++-v3/ChangeLog:

* include/std/inplace_vector (inplace_vector::operator=):
Qualify call to std::addressof.

libstdc++-v3/include/std/inplace_vector

index e1e4778528d33658bd59d466ef3ca4b9a7cedc5c..e0943f52ab8323c25a52016f936c8527a355c198 100644 (file)
@@ -174,7 +174,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
       noexcept(is_nothrow_copy_assignable_v<_Tp>
                 && is_nothrow_copy_constructible_v<_Tp>)
       {
-       if (addressof(__other) != this) [[likely]]
+       if (std::addressof(__other) != this) [[likely]]
          assign(__other.begin(), __other.end());
        return *this;
       }
@@ -191,7 +191,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
       noexcept(is_nothrow_move_assignable_v<_Tp>
                 && is_nothrow_move_constructible_v<_Tp>)
       {
-       if (addressof(__other) != this) [[likely]]
+       if (std::addressof(__other) != this) [[likely]]
          assign(std::make_move_iterator(__other.begin()),
                 std::make_move_iterator(__other.end()));
        return *this;