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) { |