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

Unified Diff: third_party/WebKit/Source/wtf/OwnPtrCommon.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/OwnPtrCommon.h
diff --git a/third_party/WebKit/Source/wtf/OwnPtrCommon.h b/third_party/WebKit/Source/wtf/OwnPtrCommon.h
index 301629e82fd3cbc1e894afa97764e52fc4db2fa8..508d97f8a2288b86f8a77ff91a20b8b696cb0eda 100644
--- a/third_party/WebKit/Source/wtf/OwnPtrCommon.h
+++ b/third_party/WebKit/Source/wtf/OwnPtrCommon.h
@@ -39,8 +39,8 @@ class ThreadSafeRefCountedBase;
template<typename T>
struct IsRefCounted {
- static const bool value = IsSubclass<T, RefCountedBase>::value
- || IsSubclass<T, ThreadSafeRefCountedBase>::value;
+ static const bool value = std::is_base_of<RefCountedBase, T>::value
+ || std::is_base_of<ThreadSafeRefCountedBase, T>::value;
};
template <typename T>

Powered by Google App Engine
This is Rietveld 408576698