Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2002-12-10 12:41:10

From: "Eric Woodruff" <Eric.Woodruff_at_[hidden]>
> 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.

Sorry, I can't reproduce this with any compiler. Are you using Boost 1.28+?
In 1.27 the correct way to do the above is

boost::shared_ptr<void> p = boost::shared_ptr<Object>(new Object);

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