10 Jul
2007
10 Jul
'07
1:21 p.m.
Pavel Syomin wrote:
If shared_ptr object has NULL value and someone call operator*(), it will throws exception. But if we look on intrusive_ptr(): T & operator*() const { return *p_; } we can see, that pointer don't checks.... Is it an imperfection or a feature?
Imperfection. This is actually already fixed in CVS as a response to a SF tracker item but it seems that the change was too late for 1.34. http://boost.cvs.sourceforge.net/boost/boost/boost/intrusive_ptr.hpp?r1=1.22&r2=1.23