aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/google/protobuf/stubs/common.h
diff options
context:
space:
mode:
authorGravatar Adam Cozzette <acozzette@gmail.com>2017-04-26 13:56:24 -0700
committerGravatar GitHub <noreply@github.com>2017-04-26 13:56:24 -0700
commitcbd08cb7d11fabbdf471d49ed13e5082033bd2b5 (patch)
tree6814d8cbb78d58aee7827016d029fe6ac2694967 /src/google/protobuf/stubs/common.h
parent54d1701f6cd1df167db6b73320e5fe6361907d2c (diff)
parent7c76ac1735a3b8f4523856bbd67588b6ccc7f850 (diff)
Merge pull request #3018 from acozzette/using-namespace-std
Remove "using namespace std" from stubs/common.h
Diffstat (limited to 'src/google/protobuf/stubs/common.h')
-rw-r--r--src/google/protobuf/stubs/common.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/google/protobuf/stubs/common.h b/src/google/protobuf/stubs/common.h
index d2611498..20294503 100644
--- a/src/google/protobuf/stubs/common.h
+++ b/src/google/protobuf/stubs/common.h
@@ -35,7 +35,12 @@
#ifndef GOOGLE_PROTOBUF_COMMON_H__
#define GOOGLE_PROTOBUF_COMMON_H__
+#include <algorithm>
+#include <iostream>
+#include <map>
+#include <set>
#include <string>
+#include <vector>
#include <google/protobuf/stubs/port.h>
#include <google/protobuf/stubs/macros.h>
@@ -220,7 +225,14 @@ class FatalException : public std::exception {
// This is at the end of the file instead of the beginning to work around a bug
// in some versions of MSVC.
-using namespace std; // Don't do this at home, kids.
+// TODO(acozzette): remove these using statements
+using std::istream;
+using std::map;
+using std::ostream;
+using std::pair;
+using std::set;
+using std::string;
+using std::vector;
} // namespace protobuf
} // namespace google