Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2002-12-10 13:08:38

"Eric Woodruff" <Eric.Woodruff_at_[hidden]> writes:

> "Peter Dimov" <pdimov_at_[hidden]> wrote in message
> news:003f01c2a06f$2c4f6550$1d00a8c0_at_pdimov2...
>> From: "Eric Woodruff" <Eric.Woodruff_at_[hidden]>
>> > Using g++ 2.95.4,
>> >

> Doesn't make any difference with the outcome in theory or in my test as I
> just tried it.
> int main () {
> boost::shared_ptr<void> p (new Object);
> }
> No destructor printed.

I'm not really sure what you mean by "in theory". Theory, (and
practice on most compilers) indicates that shared_ptr<void> works and
should delete the Object. If it is not happening for you, it's
probably a bug in your compiler. I note that gcc 2.95.4, like 2.96
which Redhat so inadvisedly shipped, is not an official release. A
list of official releases can be found at:

                       David Abrahams
   dave_at_[hidden] *
Boost support, enhancements, training, and commercial distribution

Boost list run by bdawes at, gregod at, cpdaniel at, john at