Re: [gtkmm] using RefPtr out of Gtkmm
- From: Chris Vine <chris cvine freeserve co uk>
- To: gtkmm-list gnome org
- Cc: Murray Cumming <murrayc murrayc com>, Jose Felix Hernandez Barrio <jfhernandez etsii upm es>
- Subject: Re: [gtkmm] using RefPtr out of Gtkmm
- Date: Wed, 11 Feb 2004 11:34:39 +0000
On Wednesday 11 February 2004 00:09, Chris Vine wrote:
> Incidentally, I see that the book/tutorial indicates that if a reference
> counting shared pointer gets into the C++ standard, that will be used
> instead of Glib::RefPtr. Boost also has an intrusive pointer
> (boost::intrusive_ptr) similar in effect to Glib:: RefPtr which I think has
> also been submitted as an addition to the standard, and if it is accepted
> it would be better to go for that, as it could then be plumbed into the
> GTK+ object system (in particular, g_object_ref() and g_object_unref()) in
> the same way that Glib::RefPtr is, rather than duplicating it.
On looking, I see that boost::intrusive_ptr was not submitted, only
boost::shared_ptr and boost::weak_ptr (Library Technical Report N1450,
http://std.dkuug.dk/jtc1/sc22/wg21/docs/papers/2003/n1450.html ).
Glib::RefPtr may yet live on.
Chris.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]