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

Unified Diff: mojo/public/tools/bindings/generators/cpp_templates/enum_macros.tmpl

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
« no previous file with comments | « mojo/public/cpp/bindings/lib/bindings_internal.h ('k') | net/http2/http2_structures_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/tools/bindings/generators/cpp_templates/enum_macros.tmpl
diff --git a/mojo/public/tools/bindings/generators/cpp_templates/enum_macros.tmpl b/mojo/public/tools/bindings/generators/cpp_templates/enum_macros.tmpl
index f0d503e5e08e33376282358777b2d5e0c203ba63..aecb32e10b5a68824c9b0a369034d9963274deca 100644
--- a/mojo/public/tools/bindings/generators/cpp_templates/enum_macros.tmpl
+++ b/mojo/public/tools/bindings/generators/cpp_templates/enum_macros.tmpl
@@ -95,7 +95,7 @@ struct hash<{{enum_name}}>
namespace WTF {
struct {{hash_fn_name}} {
static unsigned hash(const {{enum_name}}& value) {
- typedef base::underlying_type<{{enum_name}}>::type utype;
+ using utype = std::underlying_type<{{enum_name}}>::type;
return DefaultHash<utype>::Hash().hash(static_cast<utype>(value));
}
static bool equal(const {{enum_name}}& left, const {{enum_name}}& right) {
« no previous file with comments | « mojo/public/cpp/bindings/lib/bindings_internal.h ('k') | net/http2/http2_structures_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698