diff mbox series

[committed] libstdc++: Qualify calls in <bits/stl_uninitialized.h> to prevent ADL

Message ID 20240621092340.2205626-1-jwakely@redhat.com
State New
Headers show
Series [committed] libstdc++: Qualify calls in <bits/stl_uninitialized.h> to prevent ADL | expand

Commit Message

Jonathan Wakely June 21, 2024, 9:23 a.m. UTC
Tested x86_64-linux. Pushed to trunk. Probably worth backporting.

-- >8 --

libstdc++-v3/ChangeLog:

	* include/bits/stl_uninitialized.h (uninitialized_default_construct)
	(uninitialized_default_construct_n, uninitialized_value_construct)
	(uninitialized_value_construct_n): Qualify calls to prevent ADL.
---
 libstdc++-v3/include/bits/stl_uninitialized.h | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
diff mbox series

Patch

diff --git a/libstdc++-v3/include/bits/stl_uninitialized.h b/libstdc++-v3/include/bits/stl_uninitialized.h
index 7f84da31578..3c405d8fbe8 100644
--- a/libstdc++-v3/include/bits/stl_uninitialized.h
+++ b/libstdc++-v3/include/bits/stl_uninitialized.h
@@ -975,7 +975,7 @@  _GLIBCXX_BEGIN_NAMESPACE_VERSION
     uninitialized_default_construct(_ForwardIterator __first,
 				    _ForwardIterator __last)
     {
-      __uninitialized_default_novalue(__first, __last);
+      std::__uninitialized_default_novalue(__first, __last);
     }
 
   /**
@@ -989,7 +989,7 @@  _GLIBCXX_BEGIN_NAMESPACE_VERSION
     inline _ForwardIterator
     uninitialized_default_construct_n(_ForwardIterator __first, _Size __count)
     {
-      return __uninitialized_default_novalue_n(__first, __count);
+      return std::__uninitialized_default_novalue_n(__first, __count);
     }
 
   /**
@@ -1003,7 +1003,7 @@  _GLIBCXX_BEGIN_NAMESPACE_VERSION
     uninitialized_value_construct(_ForwardIterator __first,
 				  _ForwardIterator __last)
     {
-      return __uninitialized_default(__first, __last);
+      return std::__uninitialized_default(__first, __last);
     }
 
   /**
@@ -1017,7 +1017,7 @@  _GLIBCXX_BEGIN_NAMESPACE_VERSION
     inline _ForwardIterator
     uninitialized_value_construct_n(_ForwardIterator __first, _Size __count)
     {
-      return __uninitialized_default_n(__first, __count);
+      return std::__uninitialized_default_n(__first, __count);
     }
 
   /**