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