|
Boost Users : |
From: Sohail Somani (s.somani_at_[hidden])
Date: 2006-01-24 14:01:49
> -----Original Message-----
> From: boost-users-bounces_at_[hidden]
> [mailto:boost-users-bounces_at_[hidden]] On Behalf Of Jens Theisen
> Sent: Tuesday, January 24, 2006 10:33 AM
> To: boost-users_at_[hidden]
> Subject: Re: [Boost-users] thread library
>
> monade wrote:
>
> > Ok, it may be no memory leak, but only a harmless resource leak (as
> > Alexandrescu calls it in his singleton chapter), but I don't like it
> > anyway (my own singletons does not leak).
>
> If there would be a delete in the destructor, you would not
> gain anything:
> The destructor of a singleton is conceptually called on program
> termination and that's also where all resources are freed by
> the operating
> system anyway. So it's perfectly reasonable to not free it.
I could've sworn we just went through this a few months back. Perhaps
its time to put a comment that links to the appropriate boost mailing
thread.
http://lists.boost.org/boost-users/2005/08/13538.php
Might be related?
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net