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

Reply via email to