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

Unified Diff: net/dns/dns_hosts.h

Issue 612323010: Align base::hash_map with C++11. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Try a different tack for C++ insanity 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
Index: net/dns/dns_hosts.h
diff --git a/net/dns/dns_hosts.h b/net/dns/dns_hosts.h
index 66161059f1222f72323acdaf0f1d19f3b485b5a3..8ee6d87ecb932df22e3c15b677310dcb7f9f5fa6 100644
--- a/net/dns/dns_hosts.h
+++ b/net/dns/dns_hosts.h
@@ -22,7 +22,6 @@ namespace net {
};
namespace BASE_HASH_NAMESPACE {
-#if defined(COMPILER_GCC)
template<>
struct hash<net::DnsHostsKey> {
@@ -32,14 +31,6 @@ struct hash<net::DnsHostsKey> {
}
};
-#elif defined(COMPILER_MSVC)
-
-inline size_t hash_value(const net::DnsHostsKey& key) {
- return hash_value(key.first) + key.second;
-}
-
-#endif // COMPILER
-
} // namespace BASE_HASH_NAMESPACE
namespace net {

Powered by Google App Engine
This is Rietveld 408576698