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

Unified Diff: tools/gn/target.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/target.h
diff --git a/tools/gn/target.h b/tools/gn/target.h
index 947edc25b8afe123a28ca9ef2c08a662b6f8421c..5b19aad6fc9c03f4fd7bba9f8b3c5922f5929e28 100644
--- a/tools/gn/target.h
+++ b/tools/gn/target.h
@@ -315,20 +315,4 @@ class Target : public Item {
DISALLOW_COPY_AND_ASSIGN(Target);
};
-namespace BASE_HASH_NAMESPACE {
-
-#if defined(COMPILER_GCC)
-template<> struct hash<const Target*> {
- std::size_t operator()(const Target* t) const {
- return reinterpret_cast<std::size_t>(t);
- }
-};
-#elif defined(COMPILER_MSVC)
-inline size_t hash_value(const Target* t) {
- return reinterpret_cast<size_t>(t);
-}
-#endif // COMPILER...
-
-} // namespace BASE_HASH_NAMESPACE
-
#endif // TOOLS_GN_TARGET_H_

Powered by Google App Engine
This is Rietveld 408576698