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...