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

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

Powered by Google App Engine
This is Rietveld 408576698