Re: Replace Gtk::manage() with std::unique_ptr<>?

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]