
30 Jul
2008
30 Jul
'08
9:57 p.m.
Compared to mine, better sides: 1. All in single class (I have now joined them too). 2. Assignment operator returns correct reference. 3. typedef made code cleaner. Worse sides: 1. No thread safety (may be you do not need it, but i need). 2. No const awareness, i think the following will fail: boost::intrusive_ptr<const test> p(new test); boost::intrusive_ptr<const test> q(new test); p = q; 3.m_reference_count is visible to derived classes.