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

Unified Diff: tools/gn/source_file.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: tools/gn/source_file.h
diff --git a/tools/gn/source_file.h b/tools/gn/source_file.h
index 7d07a53a750d2d0c91827ab447a4b93c5146cff5..3b6dbfb8ba7698dd5323caa795c1d0057aa548ce 100644
--- a/tools/gn/source_file.h
+++ b/tools/gn/source_file.h
@@ -90,18 +90,12 @@ class SourceFile {
namespace BASE_HASH_NAMESPACE {
-#if defined(COMPILER_GCC)
template<> struct hash<SourceFile> {
std::size_t operator()(const SourceFile& v) const {
hash<std::string> h;
return h(v.value());
}
};
-#elif defined(COMPILER_MSVC)
-inline size_t hash_value(const SourceFile& v) {
- return hash_value(v.value());
-}
-#endif // COMPILER...
} // namespace BASE_HASH_NAMESPACE

Powered by Google App Engine
This is Rietveld 408576698