Ok, it works with the "correct" usage. That usage is a little unwieldy, and I didn't find any specific documentation about it using the search mechanism on www.boost.org (the site or on the list).
Can improper usage such as mine be disabled? "Peter Dimov" <[EMAIL PROTECTED]> wrote in message 005d01c2a073$546e1960$1d00a8c0@pdimov2">news:005d01c2a073$546e1960$1d00a8c0@pdimov2... > From: "Eric Woodruff" <[EMAIL PROTECTED]> > > > > 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); > > _______________________________________________ > Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost > _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost