Reference counted widgets



Hello,

Memory management with std::shared_ptr < Gtk::Widget > (or a similar
smart pointer that allows obtaining weak pointers, safe exception
handling etc.) would be nice. Then containers need to store smart
pointers too, so widgets won't get deleted when the instance in the
main program gets out of scope. And containers would not automatically
delete widgets when they are removed, but destroy the smart pointer.

What has happened to this idea?
See example and discussion at
http://mail.gnome.org/archives/gtkmm-list/2002-October/msg00072.html

Thanks,
Tobias


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]