Boost logo

Boost Users :

From: Mark Storer (mstorer_at_[hidden])
Date: 2002-09-19 13:48:18


>>Are you saying that if I switch from
>> scoped_ptr to shared_ptr the destructor will get called?

Is he saying that the destructor is NOT getting called with scoped_ptr? (!)

--Mark Storer
  Software Engineer
  Cardiff Software

#include <disclaimer>
typedef std::disclaimer<Cardiff> Discard;

-----Original Message-----
From: Peter Dimov [mailto:pdimov_at_[hidden]]
Sent: Thursday, September 19, 2002 11:07 AM
To: Boost-Users_at_[hidden]
Subject: Re: [Boost-Users] Re: Borland C++ Builder 5.5 & scoped_ptr

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.

Info: <http://www.boost.org>
Wiki: <http://www.crystalclearsoftware.com/cgi-bin/boost_wiki/wiki.pl>
Unsubscribe: <mailto:boost-users-unsubscribe_at_[hidden]>
 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/


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