c908b1d847f0b47107e2744441f1963852e692c8
[feed/packages.git] / libs / libyaml-cpp / patches / 010-libcxx.patch
1 From 78f338e4ee69bb00fb37faf50f448eeedc8b824c Mon Sep 17 00:00:00 2001
2 From: Mark Jan van Kampen <mjvk@allseas.com>
3 Date: Tue, 13 Oct 2020 11:19:57 +0200
4 Subject: [PATCH] Adds assert to enable compilation with libcxx+gcc
5
6 Somehow this instantiates a template properly otherwise the build fails
7 ---
8 include/yaml-cpp/node/iterator.h | 2 ++
9 1 file changed, 2 insertions(+)
10
11 diff --git a/include/yaml-cpp/node/iterator.h b/include/yaml-cpp/node/iterator.h
12 index b4472381..080ec76c 100644
13 --- a/include/yaml-cpp/node/iterator.h
14 +++ b/include/yaml-cpp/node/iterator.h
15 @@ -15,6 +15,8 @@
16 #include <utility>
17 #include <vector>
18
19 +static_assert(std::is_constructible<YAML::Node, const YAML::Node&>::value, "Node must be copy constructable");
20 +
21 namespace YAML {
22 namespace detail {
23 struct iterator_value : public Node, std::pair<Node, Node> {