Hello, On Mon, Mar 15, 2010 at 6:35 PM, Mark Roberts <[email protected]> wrote: > > Smart pointers are not meant to be a struggle. Smart pointers are your > friends. With smart pointers the decision about an object's lifetime is > stated clearly at construction time, whereas a naked 'new' may belong to one > or several 'delete's anywhere in the program, or none at all, if it's been > forgotten. >
Yes, I agree that smart pointers is a handy feature, but it spoils the syntax. In gtkmm, as you mention, you are allowed to do without smart pointers. Yet > you will find that many people choose to use them anyway, for instance > > std::auto_ptr< Gtk::Button> button( new Gtk::Button()); > > That would be great if I could decide myself where to use them or not, unfortunately the current Cluttermm API gives me no choice :( I hope it will end up with some consistency across both Gtkmm and Cluttermm in the future. -- Aarto
_______________________________________________ gtkmm-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/gtkmm-list
