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

Unified Diff: tools/gn/output_file.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 | « tools/gn/label_ptr.h ('k') | tools/gn/source_dir.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/output_file.h
diff --git a/tools/gn/output_file.h b/tools/gn/output_file.h
index eb6faf064f8c19cf32e1398a0878a34234e91633..3e0e99df47fc15049023f7c61287105648082060 100644
--- a/tools/gn/output_file.h
+++ b/tools/gn/output_file.h
@@ -47,18 +47,12 @@ class OutputFile {
namespace BASE_HASH_NAMESPACE {
-#if defined(COMPILER_GCC)
template<> struct hash<OutputFile> {
std::size_t operator()(const OutputFile& v) const {
hash<std::string> h;
return h(v.value());
}
};
-#elif defined(COMPILER_MSVC)
-inline size_t hash_value(const OutputFile& v) {
- return hash_value(v.value());
-}
-#endif // COMPILER...
} // namespace BASE_HASH_NAMESPACE
« no previous file with comments | « tools/gn/label_ptr.h ('k') | tools/gn/source_dir.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698