Procházet zdrojové kódy

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

This is both more correct, and the build fails on AIX without it
Matt Hauck před 9 roky
rodič
revize
25ecd559cc
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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) {