Re: Bug on a very simple test on glibmm...
- From: Murray Cumming <murrayc murrayc com>
- To: jey zemarmot net
- Cc: gtkmm-list <gtkmm-list gnome org>
- Subject: Re: Bug on a very simple test on glibmm...
- Date: Mon, 16 May 2005 14:07:11 +0200
On Mon, 2005-05-16 at 13:58 +0200, jey zemarmot net wrote:
[snip]
> class Node : public Glib::Object
> {
> public:
> Node () {};
> };
[snip]
This doesn't make much sense. There is very little reason to derive from
Glib::Object unless you are wrapping an existing GObject type.
> For now, if you cannot deal with the problem immediately (so forget this
> question if you are able to answer me and give me the reason and the solution
> right now), could someone lead me to another good smart pointer?
So I guess you were doing this just so you could use RefPtr. RefPtr is
not a general purpose smart pointer, as the documentation says. Google
should find you a general purpose shared reference-couting smartpointer,
such as the one in boost.
--
Murray Cumming
murrayc murrayc com
www.murrayc.com
www.openismus.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]