From 39a789e657a52e835c281233b63cc2a6bb387fd4 Mon Sep 17 00:00:00 2001 From: Adam Cozzette Date: Fri, 19 Jan 2018 16:46:57 -0800 Subject: Removed using statements from common.h These statements pulled a bunch of symbols from the std namespace into the global namespace. This commit removes all of them except for std::string, which is a bit trickier to remove. --- src/google/protobuf/stubs/hash.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/google/protobuf/stubs/hash.h') diff --git a/src/google/protobuf/stubs/hash.h b/src/google/protobuf/stubs/hash.h index 218cd948..daf8ec57 100644 --- a/src/google/protobuf/stubs/hash.h +++ b/src/google/protobuf/stubs/hash.h @@ -408,8 +408,8 @@ struct hash { }; template -struct hash > { - inline size_t operator()(const pair& key) const { +struct hash > { + inline size_t operator()(const std::pair& key) const { size_t first_hash = hash()(key.first); size_t second_hash = hash()(key.second); @@ -420,8 +420,8 @@ struct hash > { static const size_t bucket_size = 4; static const size_t min_buckets = 8; - inline bool operator()(const pair& a, - const pair& b) const { + inline bool operator()(const std::pair& a, + const std::pair& b) const { return a < b; } }; -- cgit v1.2.3