blob: 26128be84a5297d08e3bd50130dd02268baacdbc [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001From 78f338e4ee69bb00fb37faf50f448eeedc8b824c Mon Sep 17 00:00:00 2001
2From: Mark Jan van Kampen <mjvk@allseas.com>
3Date: Tue, 13 Oct 2020 11:19:57 +0200
4Subject: [PATCH] Adds assert to enable compilation with libcxx+gcc
5
6Somehow 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--- a/include/yaml-cpp/node/iterator.h
12+++ b/include/yaml-cpp/node/iterator.h
13@@ -15,6 +15,8 @@
14 #include <utility>
15 #include <vector>
16
17+static_assert(std::is_constructible<YAML::Node, const YAML::Node&>::value, "Node must be copy constructable");
18+
19 namespace YAML {
20 namespace detail {
21 struct iterator_value : public Node, std::pair<Node, Node> {