Boost logo

Boost :

From: Eric Woodruff (Eric.Woodruff_at_[hidden])
Date: 2002-12-10 13:41:50


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" <pdimov_at_[hidden]> wrote in message
news:005d01c2a073$546e1960$1d00a8c0_at_pdimov2...
> 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);
>
> _______________________________________________
> Unsubscribe & other changes:
http://lists.boost.org/mailman/listinfo.cgi/boost
>


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk