On 08/02/16 21:13 +0100, Jonas Platte wrote:
Have you considered std::shared_ptr as well? I'd assume wouldn't have a noticable performance overhead over Gtk::manage, and again, this could mean a reduced implementation complexity in a future release where Gtk::manage would be removed. Otherwise it is pretty much the same though, with the small advantage that you don't have to use new anymore, although you could create a std::make_shared like version of Gtk::manage as well (and std::make_shared is only available in C++14, not C++11).
No, std::make_unique is only available since C++14, std::make_shared was in C++11. _______________________________________________ gtkmm-list mailing list gtkmm-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtkmm-list