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
F164184389: D49790.id153539.diff
Wed, Jul 29, 10:28 AM
F164124241: D49790.id153539.diff
Tue, Jul 28, 11:21 PM
Unknown Object (File)
Fri, Jul 24, 9:13 AM
Unknown Object (File)
Thu, Jul 23, 4:38 AM
Unknown Object (File)
Tue, Jul 21, 9:46 AM
Unknown Object (File)
Jun 14 2026, 9:25 PM
Unknown Object (File)
Jun 12 2026, 4:20 PM
Unknown Object (File)
May 29 2026, 9:56 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 Not Applicable
Unit
Tests Not Applicable

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