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, Nov 29, 7:12 PM
Unknown Object (File)
Nov 13 2025, 2:41 AM
Unknown Object (File)
Nov 12 2025, 5:07 PM
Unknown Object (File)
Nov 12 2025, 12:27 PM
Unknown Object (File)
Nov 12 2025, 12:24 PM
Unknown Object (File)
Nov 12 2025, 9:48 AM
Unknown Object (File)
Nov 11 2025, 10:45 PM
Unknown Object (File)
Nov 11 2025, 7:09 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.