summaryrefslogtreecommitdiff
path: root/devel/yaml-cpp/files/patch-include_yaml-cpp_parser.h
diff options
context:
space:
mode:
authorEd Schouten <ed@FreeBSD.org>2017-09-10 19:36:17 +0000
committerEd Schouten <ed@FreeBSD.org>2017-09-10 19:36:17 +0000
commit48a2275e51ed97fdbac317354d6e7739bcc8b057 (patch)
treee77aea3334d07a552b5792ac2688d64df51ea6c1 /devel/yaml-cpp/files/patch-include_yaml-cpp_parser.h
parent- Update to 3.1.4. (diff)
Make yaml-cpp usable on HEAD for software that wants C++17.
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 Reported by: pkg-fallout :-C Reviewed by: madpilot, mat Differential Revision: https://reviews.freebsd.org/D12285
Diffstat (limited to 'devel/yaml-cpp/files/patch-include_yaml-cpp_parser.h')
-rw-r--r--devel/yaml-cpp/files/patch-include_yaml-cpp_parser.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/devel/yaml-cpp/files/patch-include_yaml-cpp_parser.h b/devel/yaml-cpp/files/patch-include_yaml-cpp_parser.h
new file mode 100644
index 000000000000..dd5ebd96e8aa
--- /dev/null
+++ b/devel/yaml-cpp/files/patch-include_yaml-cpp_parser.h
@@ -0,0 +1,13 @@
+--- include/yaml-cpp/parser.h.orig 2016-01-10 18:11:40 UTC
++++ include/yaml-cpp/parser.h
+@@ -40,8 +40,8 @@ class YAML_CPP_API Parser : private nonc
+ void HandleTagDirective(const Token& token);
+
+ private:
+- std::auto_ptr<Scanner> m_pScanner;
+- std::auto_ptr<Directives> m_pDirectives;
++ std::unique_ptr<Scanner> m_pScanner;
++ std::unique_ptr<Directives> m_pDirectives;
+ };
+ }
+