Browse Source

Change hint type to `const void*` (#2568)

This is both more correct, and the build fails on AIX without it
Matt Hauck 8 năm trước cách đây
mục cha
commit
25ecd559cc
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/google/protobuf/map.h

+ 1 - 1
src/google/protobuf/map.h

@@ -592,7 +592,7 @@ class Map {
     MapAllocator(const MapAllocator<X>& allocator)
         : arena_(allocator.arena()) {}
 
-    pointer allocate(size_type n, const_pointer hint = 0) {
+    pointer allocate(size_type n, const void* hint = 0) {
       // If arena is not given, malloc needs to be called which doesn't
       // construct element object.
       if (arena_ == NULL) {