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
Unknown Object (File)
Sat, Oct 11, 3:28 AM
Unknown Object (File)
Wed, Sep 17, 3:43 AM
Unknown Object (File)
Sep 8 2025, 4:49 AM
Unknown Object (File)
Aug 11 2025, 10:13 AM
Unknown Object (File)
Aug 2 2025, 9:12 PM
Unknown Object (File)
Jul 25 2025, 11:52 PM
Unknown Object (File)
Jul 7 2025, 6:26 AM
Unknown Object (File)
Jul 4 2025, 4:38 AM
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.