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

Unified Diff: base/files/file_path.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 | « base/containers/small_map_unittest.cc ('k') | base/strings/string_piece.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/files/file_path.h
diff --git a/base/files/file_path.h b/base/files/file_path.h
index 008b9f5afc67d83db10decbcc9447723da40fbdd..ad42b9549275c706b677e78ecc49531c680a4dd9 100644
--- a/base/files/file_path.h
+++ b/base/files/file_path.h
@@ -107,7 +107,6 @@
#include <vector>
#include "base/base_export.h"
-#include "base/compiler_specific.h"
#include "base/containers/hash_tables.h"
#include "base/strings/string16.h"
#include "base/strings/string_piece.h" // For implicit conversions.
@@ -453,7 +452,6 @@ BASE_EXPORT extern void PrintTo(const base::FilePath& path, std::ostream* out);
// Provide a hash function so that hash_sets and maps can contain FilePath
// objects.
namespace BASE_HASH_NAMESPACE {
-#if defined(COMPILER_GCC)
template<>
struct hash<base::FilePath> {
@@ -462,14 +460,6 @@ struct hash<base::FilePath> {
}
};
-#elif defined(COMPILER_MSVC)
-
-inline size_t hash_value(const base::FilePath& f) {
- return hash_value(f.value());
-}
-
-#endif // COMPILER
-
} // namespace BASE_HASH_NAMESPACE
#endif // BASE_FILES_FILE_PATH_H_
« no previous file with comments | « base/containers/small_map_unittest.cc ('k') | base/strings/string_piece.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698