Index: compiled/intrusive_ptr.h |
=================================================================== |
--- a/compiled/intrusive_ptr.h |
+++ b/compiled/intrusive_ptr.h |
@@ -35,30 +35,30 @@ |
public: |
void AddRef() |
{ |
mRefCount++; |
} |
void ReleaseRef() |
{ |
- assert(mRefCount > 0, u"Unexpected zero or negative reference count"_str); |
+ assert2(mRefCount > 0, u"Unexpected zero or negative reference count"_str); |
if (--mRefCount == 0) |
delete this; |
} |
protected: |
ref_counted() |
: mRefCount(1) |
{ |
} |
virtual ~ref_counted() |
{ |
- assert(mRefCount == 0, u"Destroying a ref-counted object with a non-zero reference count"_str); |
+ assert2(mRefCount == 0, u"Destroying a ref-counted object with a non-zero reference count"_str); |
} |
private: |
int mRefCount; |
}; |
template<typename T, |
class = typename std::enable_if<std::is_base_of<ref_counted,T>::value>::type> |