Boost logo

Boost Users :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2007-07-10 09:21:59


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


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net