Page MenuHomeFreeBSD

Make yaml-cpp usable on HEAD by software that wants C++17.
ClosedPublic

Authored by ed on Sep 9 2017, 6:29 AM.
Tags
None
Referenced Files
F161668296: D12285.id32828.diff
Sun, Jul 5, 7:12 PM
Unknown Object (File)
Sat, Jul 4, 10:56 AM
Unknown Object (File)
Fri, Jul 3, 5:37 AM
Unknown Object (File)
Thu, Jul 2, 7:41 AM
Unknown Object (File)
Thu, Jun 18, 7:58 PM
Unknown Object (File)
Wed, Jun 17, 1:15 AM
Unknown Object (File)
Tue, Jun 16, 12:40 PM
Unknown Object (File)
Jun 4 2026, 12:40 PM
Subscribers
None

Details

Summary

yaml-cpp uses auto_ptr in a small number of places. This is problematic,
as libc++ 5.0.0 (used on HEAD) has auto_ptr disabled when building for
C++17. This causes the build for cloudabi-utils to fail on HEAD.

Instead of removing all of the use of auto_ptr from yaml-cpp, this
commit only changes public header files to make use of unique_ptr.

As I also ran into this issue for CloudABI, here's a bug report I filed
upstream a couple of weeks ago:

https://github.com/jbeder/yaml-cpp/issues/523

Diff Detail

Repository
rP FreeBSD ports repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

ed retitled this revision from Make yaml-cpp on HEAD by software that wants C++17. to Make yaml-cpp usable on HEAD by software that wants C++17..Sep 9 2017, 7:08 AM
This revision is now accepted and ready to land.Sep 9 2017, 8:15 AM
This revision was automatically updated to reflect the committed changes.