diff --git a/BAN/include/BAN/RefPtr.h b/BAN/include/BAN/RefPtr.h index 6f0e5108..155de4e3 100644 --- a/BAN/include/BAN/RefPtr.h +++ b/BAN/include/BAN/RefPtr.h @@ -44,7 +44,7 @@ namespace BAN uint32_t old = m_ref_count.fetch_sub(1); ASSERT(old > 0); if (old == 1) - delete (const T*)this; + delete static_cast(this); } protected: