Boost logo

Boost Users :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2002-09-19 13:06:42


From: "Brian" <bneal_at_[hidden]>
> --- In Boost-Users_at_y..., "Gennadiy E. Rozental" <rogeeff_at_m...> wrote:
> > This was discussed during Boost.Test review.
> > Peter some time ago made a changes in boost::shared_ptr that allows
> > it to be used with Borland 5.5 namely in the situation you
> described.
> >
> > Gennadiy.
>
> Hi...could you clarify this? All I noticed was that shared_ptr had
> that compile time check for an incomplete type removed, whereas
> scoped_ptr still has it. Are you saying that if I switch from
> scoped_ptr to shared_ptr the destructor will get called?

Yes, shared_ptr will call the destructor. It only requires a complete type
at construction time.


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