Re: [glade--] Could raw C++ pointers be eliminated?



> 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]