[Bug c++/58407] [C++11] Should warn about deprecated implicit generation of copy constructor/assignment

steinar+gcc at gunderson dot no gcc-bugzilla@gcc.gnu.org
Tue Oct 2 16:28:00 GMT 2018


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58407

--- Comment #26 from Steinar H. Gunderson <steinar+gcc at gunderson dot no> ---
That blog post seems to advocate using std::unique_ptr for pretty much
everything, which unfortunately doesn't always work. See e.g. slide 8 of
https://github.com/CppCon/CppCon2018/blob/master/Presentations/woes_of_scope_guards_and_unique_resource/woes_of_scope_guards_and_unique_resource__peter_sommerlad__cppcon_2018.pdf
-- C++20 will have std::unique_resource, but we're not there yet.

Straying off course for the bug, though...


More information about the Gcc-bugs mailing list