Page MenuHomeFreeBSD

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

Authored by jhb on Apr 11 2025, 6:00 PM.
Tags
None
Referenced Files
F166997870: D49790.id154411.diff
Tue, Aug 18, 11:47 AM
Unknown Object (File)
Thu, Aug 13, 12:08 AM
Unknown Object (File)
Mon, Aug 10, 11:36 AM
Unknown Object (File)
Sat, Aug 8, 4:30 PM
Unknown Object (File)
Sat, Aug 8, 5:13 AM
Unknown Object (File)
Mon, Aug 3, 1:42 AM
Unknown Object (File)
Sun, Aug 2, 2:01 AM
Unknown Object (File)
Thu, Jul 30, 5:10 AM
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.Apr 11 2025, 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.

This revision is now accepted and ready to land.Apr 24 2025, 12:22 AM