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

Unified Diff: mojo/public/cpp/bindings/lib/bindings_internal.h

Issue 2797793002: Remove base::underlying_type, replace uses with std::underlying_type (Closed)
Patch Set: underlyingtype: rm-tests Created 3 years, 8 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: mojo/public/cpp/bindings/lib/bindings_internal.h
diff --git a/mojo/public/cpp/bindings/lib/bindings_internal.h b/mojo/public/cpp/bindings/lib/bindings_internal.h
index 631daec392e1b9e558a87a198265af474cf953a0..6f73ee6a16c180dd7aae7f418986816ce09c294b 100644
--- a/mojo/public/cpp/bindings/lib/bindings_internal.h
+++ b/mojo/public/cpp/bindings/lib/bindings_internal.h
@@ -8,8 +8,8 @@
#include <stdint.h>
#include <functional>
+#include <type_traits>
-#include "base/template_util.h"
#include "mojo/public/cpp/bindings/interface_id.h"
#include "mojo/public/cpp/bindings/lib/template_util.h"
#include "mojo/public/cpp/system/core.h"
@@ -325,7 +325,7 @@ struct EnumHashImpl {
static_assert(std::is_enum<T>::value, "Incorrect hash function.");
size_t operator()(T input) const {
- using UnderlyingType = typename base::underlying_type<T>::type;
+ using UnderlyingType = typename std::underlying_type<T>::type;
return std::hash<UnderlyingType>()(static_cast<UnderlyingType>(input));
}
};
« no previous file with comments | « components/prefs/pref_value_store.h ('k') | mojo/public/tools/bindings/generators/cpp_templates/enum_macros.tmpl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698