Re: Replace Gtk::manage() with std::unique_ptr<>?
- From: Jonathan Wakely <gtkmm kayari org>
- To: Jonas Platte <jonasplatte gmail com>
- Cc: Murray Cumming <murrayc murrayc com>, gtkmm-list gnome org
- Subject: Re: Replace Gtk::manage() with std::unique_ptr<>?
- Date: Mon, 8 Feb 2016 20:27:26 +0000
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.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]