aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/google/protobuf/map.h
diff options
context:
space:
mode:
authorGravatar unknown <teboring@TEBORING1-W.ad.corp.google.com>2015-05-27 11:45:32 -0700
committerGravatar Bo Yang <teboring@google.com>2015-05-27 17:33:10 -0700
commitca1c252923021306b7fbc488d33f6a6a89df59cf (patch)
tree441c20dd9dff539e645f3dc29c697efb632e0d34 /src/google/protobuf/map.h
parentb11d6fe515873591907bcce592ed86757c3d7cf3 (diff)
Fixes on visual studio 2008
Diffstat (limited to 'src/google/protobuf/map.h')
-rw-r--r--src/google/protobuf/map.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/google/protobuf/map.h b/src/google/protobuf/map.h
index 58a1817a..c16fbed2 100644
--- a/src/google/protobuf/map.h
+++ b/src/google/protobuf/map.h
@@ -33,6 +33,7 @@
#include <iterator>
#include <google/protobuf/stubs/hash.h>
+#include <limits> // To support Visual Studio 2008
#include <google/protobuf/arena.h>
#include <google/protobuf/generated_enum_util.h>
@@ -200,6 +201,11 @@ class Map {
return arena_ != other.arena_;
}
+ // To support Visual Studio 2008
+ size_type max_size() const {
+ return std::numeric_limits<size_type>::max();
+ }
+
private:
Arena* arena_;