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

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_convertible in threading traits 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..305f7f02cf06466d1edb1d17e3b1e22b4b9a0b93 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<WTF::IsBaseOf<typename std::remove_pointer<decltype(p->registerAsStaticReference())>::type, V>::value>::Type* = 0);
template<typename V> static NoType checkHasRegisterAsStaticReferenceMethod(...);
public:

Powered by Google App Engine
This is Rietveld 408576698