Re: [glade--] Could raw C++ pointers be eliminated?
- From: "Murray Cumming" <murrayc murrayc com>
- To: "Christof Petig" <christof petig-baender de>
- Cc: glademm <glademm-list gnome org>, Paul Elliott <pelliott io com>, Murray Cumming <murrayc murrayc com>
- Subject: Re: [glade--] Could raw C++ pointers be eliminated?
- Date: Wed, 20 Oct 2004 12:19:41 +0200 (CEST)
> Murray Cumming schrieb:
>> Yes, RefPtr<> is not a general purpose smartpointer. But there are
>> plenty
>> of other general purpose smartpointers that can be used with gtkmm.
>
> So (if I read correctly between the lines) you advise me to use
> auto_ptr<> inside the ctor (and the class)?
I hate auto_ptr<>. I generally prefer shared reference-counting
smartpointers.
But I personally see no great advantage for you in doing this instead of
using Gtk::manage().
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]