"Eric Woodruff" <[EMAIL PROTECTED]> writes: > "Peter Dimov" <[EMAIL PROTECTED]> wrote in message > 003f01c2a06f$2c4f6550$1d00a8c0@pdimov2">news:003f01c2a06f$2c4f6550$1d00a8c0@pdimov2... >> From: "Eric Woodruff" <[EMAIL PROTECTED]> >> > 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: http://gcc.gnu.org/releases.html -- David Abrahams [EMAIL PROTECTED] * http://www.boost-consulting.com Boost support, enhancements, training, and commercial distribution _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost