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: |