[PATCH] [libc++] Const qualify __gnu_cxx::hash_map<>::const_iterator::pointer type.

Peter Collingbourne peter at pcc.me.uk
Fri Feb 14 19:31:14 PST 2014


Hi mclow.lists,

http://llvm-reviews.chandlerc.com/D2811

Files:
  include/ext/hash_map

Index: include/ext/hash_map
===================================================================
--- include/ext/hash_map
+++ include/ext/hash_map
@@ -430,9 +430,9 @@
     typedef const value_type&                                    reference;
     typedef typename __pointer_traits::template
 #ifndef _LIBCPP_HAS_NO_TEMPLATE_ALIASES
-            rebind<value_type>
+            rebind<const value_type>
 #else
-            rebind<value_type>::other
+            rebind<const value_type>::other
 #endif
                                                                  pointer;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D2811.1.patch
Type: text/x-patch
Size: 579 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140214/de5a91e5/attachment.bin>


More information about the cfe-commits mailing list