Re: [gtkmm] Re: [glade--] Could raw C++ pointers be eliminated?
Christof Petig <[email protected]> Thu, 21 Oct 2004 13:18:26 +0200
| Newsgroups | gmane.comp.gnome.glademm,gmane.comp.gnome.gtkmm |
|---|---|
| Organization | Adolf Petig GmbH & Co. KG |
| Message-ID | <[email protected]> |
[email protected] schrieb: > Sorry, my murrayc.com email isn't working right now, so I'm replying off > list. > > >>Murray: Any problems left when storing widget references in RefPtrs >>left? > > > Yes, I told you already that RefPtr is not a general-purpose > smartpointer. Use something else. Hmmm. Agreed. Hmmm. But ... Is it suitable enough to be used as a pointer to Gtk::Widgets? E.g. to make a ctor exception safe (destructing all already generated widgets) and destructing (non managed) member widgets in the dtor? I have no special preference for any smart pointer; I consider boost overkill (to impose on every user of glademm). So when RefPtr is not suitable it looks like storing pointers to widgets within my UI classes is the best choice (and optionally using auto_ptr or something similar to make the ctor exception safe) Discussion ending here concluding that C pointers are again the way to go for glademm (unless someone proposes a universally available and viable smart pointer to me). Christof _______________________________________________ glademm-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/glademm-list
signature.asc
(application/pgp-signature, 251 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Debian - http://enigmail.mozdev.org iD8DBQFBd5sHng+R+0ucfO0RAsIZAJ4gw80ISS9MvCDROnlDJ0KdCQ0z9gCgt+bd MFK46XZsstLuWsMLZtXt/LM= =GrdS -----END PGP SIGNATURE-----