Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2741)

Unified Diff: base/strings/string_piece.h

Issue 623383002: Align base::hash_map with C++11, part 2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@hash-1
Patch Set: clean up stale includes Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/files/file_path.h ('k') | cc/quads/render_pass.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/strings/string_piece.h
diff --git a/base/strings/string_piece.h b/base/strings/string_piece.h
index a051bc8e9010dac76db797a50a59738d79477c6b..349018b9d0a25116755ee948f3007d0bba07175e 100644
--- a/base/strings/string_piece.h
+++ b/base/strings/string_piece.h
@@ -439,7 +439,6 @@ BASE_EXPORT std::ostream& operator<<(std::ostream& o,
return result; \
namespace BASE_HASH_NAMESPACE {
-#if defined(COMPILER_GCC)
template<>
struct hash<base::StringPiece> {
@@ -454,17 +453,6 @@ struct hash<base::StringPiece16> {
}
};
-#elif defined(COMPILER_MSVC)
-
-inline size_t hash_value(const base::StringPiece& sp) {
- HASH_STRING_PIECE(base::StringPiece, sp);
-}
-inline size_t hash_value(const base::StringPiece16& sp16) {
- HASH_STRING_PIECE(base::StringPiece16, sp16);
-}
-
-#endif // COMPILER
-
} // namespace BASE_HASH_NAMESPACE
#endif // BASE_STRINGS_STRING_PIECE_H_
« no previous file with comments | « base/files/file_path.h ('k') | cc/quads/render_pass.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698