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

Unified Diff: third_party/WebKit/Source/wtf/LeakAnnotations.h

Issue 1477213003: More switching to standard type traits (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use std::is_base_of Created 5 years 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: third_party/WebKit/Source/wtf/LeakAnnotations.h
diff --git a/third_party/WebKit/Source/wtf/LeakAnnotations.h b/third_party/WebKit/Source/wtf/LeakAnnotations.h
index 446992db6abf6cfefb9bc9473bcd08dc45da6daf..9274c909b4cfeebbee6dc33dc6e446bb65d7a9ef 100644
--- a/third_party/WebKit/Source/wtf/LeakAnnotations.h
+++ b/third_party/WebKit/Source/wtf/LeakAnnotations.h
@@ -101,7 +101,7 @@ class CanRegisterStaticLocalReference {
} NoType;
// Check if class T has public method "T* registerAsStaticReference()".
- template<typename V> static YesType checkHasRegisterAsStaticReferenceMethod(V* p, typename EnableIf<IsSubclass<V, typename std::remove_pointer<decltype(p->registerAsStaticReference())>::type>::value>::Type* = 0);
+ template<typename V> static YesType checkHasRegisterAsStaticReferenceMethod(V* p, typename std::enable_if<std::is_base_of<V, typename std::remove_pointer<decltype(p->registerAsStaticReference())>::type>::value>::Type* = 0);
Nico 2015/12/09 15:09:39 Since you're replacing IsSubclass with is_base_of
Mikhail 2015/12/10 11:38:15 I do, thanks for noticing. Fixed in the latest pat
template<typename V> static NoType checkHasRegisterAsStaticReferenceMethod(...);
public:

Powered by Google App Engine
This is Rietveld 408576698