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

Unified Diff: gin/wrappable.h

Issue 1475233002: Remove base::enable_if (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 | « gin/object_template_builder.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gin/wrappable.h
diff --git a/gin/wrappable.h b/gin/wrappable.h
index f7d82b0d5a71953cdc84ecec013d9094d5237848..e6c7a716b43a826f98ab26f7e0425e0a523401ec 100644
--- a/gin/wrappable.h
+++ b/gin/wrappable.h
@@ -5,6 +5,8 @@
#ifndef GIN_WRAPPABLE_H_
#define GIN_WRAPPABLE_H_
+#include <type_traits>
+
#include "base/template_util.h"
#include "gin/converter.h"
#include "gin/gin_export.h"
@@ -101,9 +103,10 @@ class Wrappable : public WrappableBase {
// This converter handles any subclass of Wrappable.
-template<typename T>
-struct Converter<T*, typename base::enable_if<
- base::is_convertible<T*, WrappableBase*>::value>::type> {
+template <typename T>
+struct Converter<T*,
+ typename std::enable_if<
+ base::is_convertible<T*, WrappableBase*>::value>::type> {
static v8::Local<v8::Value> ToV8(v8::Isolate* isolate, T* val) {
return val->GetWrapper(isolate);
}
« no previous file with comments | « gin/object_template_builder.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698