Index: compiled/intrusive_ptr.h |
diff --git a/compiled/intrusive_ptr.h b/compiled/intrusive_ptr.h |
index a198fc3e1d1adcd1c442bf0e8f4b769b0d8d1e5b..d09d768b50a3e0df14b4b8c20b31ae4a859ba5da 100644 |
--- a/compiled/intrusive_ptr.h |
+++ b/compiled/intrusive_ptr.h |
@@ -64,10 +64,10 @@ private: |
int mRefCount; |
}; |
-template<typename T, |
- class = typename std::enable_if<std::is_base_of<ref_counted,T>::value>::type> |
+template<typename T> |
class intrusive_ptr |
{ |
+ static_assert(std::is_base_of<ref_counted, T>::value, "The class T should inherit ref_counted"); |
public: |
explicit intrusive_ptr() |
: mPointer(nullptr) |