From: Allan Odgaard (ML_at_[hidden])
Date: 2004-03-03 12:18:32
On 3. Mar 2004, at 17:01, David Turner wrote:
> In fact, window is defined thus:
> typedef boost::shared_ptr<window_base> window;
I think this can easily lead to retain-cycles, as widgets will often
need a pointer to their window, which must be a weak pointer, as there
are otherwise no ways to get the reference count of the window down to
zero, without first having to remove all the widgets who keep a
reference to their window.
But maybe the widgets explicitly use window_base instead of window?!?
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk