News for hackers. Stuff that matters.
Re:C++ is a hack by dragontamer on Tuesday February 16, 2016 @01:23PM (#11111945)
But if "Foo" was composed of unique_ptr (or shared_ptr), then those smart pointers would be nulled out after the std::move (due to the default move constructor)

So again, unless Foo f was composed of "raw pointers", even that kind of code is safe from "use after free" vulnerabilities.

There are no comments on this comment yet.