Page MenuHomeFreeBSD

atf: Switch from std::auto_ptr<> to std::unique_ptr<>
ClosedPublic

Authored by jhb on Fri, Apr 11, 6:00 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Apr 17, 2:45 AM
Unknown Object (File)
Thu, Apr 17, 2:10 AM
Unknown Object (File)
Thu, Apr 17, 12:02 AM
Unknown Object (File)
Wed, Apr 16, 3:10 PM
Unknown Object (File)
Tue, Apr 15, 2:06 PM
Unknown Object (File)
Tue, Apr 15, 1:02 AM
Unknown Object (File)
Mon, Apr 14, 9:09 AM
Unknown Object (File)
Sun, Apr 13, 2:14 PM
Subscribers

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

jhb requested review of this revision.Fri, Apr 11, 6:00 PM
This revision is now accepted and ready to land.Wed, Apr 16, 12:00 PM

Upstream has apparently fixed this differently using shared_ptr (not sure why, that seems wasteful and inefficient given there weren't any pointer assignments).

Upstream has apparently fixed this differently using shared_ptr

Huh, the only results for shared_ptr I see upstream are in NEWS claiming

Replace auto_ptr with std::shared_ptr (fixes modern C++ compliance).

But it's actually unique_ptr as in your review, from https://github.com/freebsd/atf/commit/f053ab687f6e27aa264f599ecbfc5ef27ad4e2d3
Pull request to update NEWS submitted: https://github.com/freebsd/atf/pull/103

Hah, cute. Ok then, that means I can still merge this and it will just fall out when doing our next vendor import.