]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Minor comment improvements in <bits/hashtable.h>
authorJonathan Wakely <jwakely@redhat.com>
Fri, 1 Nov 2024 12:46:26 +0000 (12:46 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Mon, 2 Dec 2024 22:41:40 +0000 (22:41 +0000)
libstdc++-v3/ChangeLog:

* include/bits/hashtable.h: Improve comments.

(cherry picked from commit db798ee38a3f81eff207e889c36c727bb370112c)

libstdc++-v3/include/bits/hashtable.h

index cd3e1ac297c5c153b5f533c35d4741ff3dec479e..f48f3651f186576714f5f9f1c8544b954b5f3fb3 100644 (file)
@@ -1014,7 +1014,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
       iterator
       erase(const_iterator);
 
-      // LWG 2059.
+      // _GLIBCXX_RESOLVE_LIB_DEFECTS
+      // 2059. C++0x ambiguity problem with map::erase
       iterator
       erase(iterator __it)
       { return erase(const_iterator(__it)); }
@@ -1036,7 +1037,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
       // DR 1189.
       // reserve, if present, comes from _Rehash_base.
 
-#if __glibcxx_node_extract // >= C++17
+#if __glibcxx_node_extract // >= C++17 && HOSTED
       /// Re-insert an extracted node into a container with unique keys.
       insert_return_type
       _M_reinsert_node(node_type&& __nh)