[C++-sig] Memory leaks in make_function.hpp?
Dominic Sacré
bugcreator at gmx.de
Tue Jun 18 18:04:49 CEST 2002
On Tuesday 18 June 2002 12:52, David Abrahams wrote:
> Not easily. The problem is that the class needs to be registered with
> the class_registry in the BPL library. Since the class owns a reference
> to its methods, that keeps the whole package alive indefinitely. I
> could use some kind of weak reference to manage this, but that would
> only seem to make things much more complicated.
Hm, okay. I have no idea how complicated it would be to solve this
problem, so if you think it's not worth the effort to fix it, that's fine
with me. I'll simply modify my leak detector to ignore leaks from the
BPL. After all I want to find my own leaks, not yours ;)
Cheers,
Dominic
More information about the Cplusplus-sig
mailing list