quote:Original post by RenderTargetif( -- m_cRefCount == 0 ) delete this;return m_cRefCount;
Though of course, if you take that fallthrough approach, you''d probably want to save m_cRefCount to a temporary variable; who knows whether it will still be valid after deletion...
Superpig
- saving pigs from untimely fates, and when he''s not doing that, runs The Binary Refinery.
Enginuity1 | Enginuity2 | Enginuity3 | Enginuity4