Page MenuHomeFreeBSD

kyua: Switch from std::auto_ptr<> to std::unique_ptr<>
Needs ReviewPublic

Authored by jhb on Fri, Apr 11, 6:00 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Apr 18, 10:26 AM
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:13 AM
Unknown Object (File)
Tue, Apr 15, 11:48 AM
Unknown Object (File)
Sun, Apr 13, 3:05 AM
Unknown Object (File)
Sat, Apr 12, 11:22 PM
Unknown Object (File)
Sat, Apr 12, 4:14 PM
Subscribers

Details

Summary

A few places were assigning auto_ptr<>s depending on the ownership
handoff. These now use an explicit std::move() as required by
unique_ptr<>.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 63468
Build 60352: arc lint + arc unit

Event Timeline

jhb requested review of this revision.Fri, Apr 11, 6:00 PM

A test VM is most of the way through a full kyua test run with this stack of changes applied and seems to be running fine.

Most of this change was mechanical (sed -e 's/auto_ptr/unique_ptr/') with a few places adjusted to use std::move() to fix compile errors.