浏览代码

Fix issue 445, issue 449

xiaofeng@google.com 12 年之前
父节点
当前提交
e406747cd5
共有 2 个文件被更改,包括 2 次插入1 次删除
  1. 1 1
      src/google/protobuf/extension_set.h
  2. 1 0
      src/google/protobuf/message.cc

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

@@ -551,7 +551,7 @@ class LIBPROTOBUF_EXPORT ExtensionSet {
   // only contain a small number of extensions whereas hash_map is optimized
   // for 100 elements or more.  Also, we want AppendToList() to order fields
   // by field number.
-  map<int, Extension> extensions_;
+  std::map<int, Extension> extensions_;
 
   GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(ExtensionSet);
 };

+ 1 - 0
src/google/protobuf/message.cc

@@ -32,6 +32,7 @@
 //  Based on original Protocol Buffers design by
 //  Sanjay Ghemawat, Jeff Dean, and others.
 
+#include <iostream>
 #include <stack>
 #include <google/protobuf/stubs/hash.h>