1
0
mirror of https://git.openwrt.org/feed/packages.git synced 2024-06-23 00:58:44 +02:00
openwrt-packages/libs/libyaml-cpp/patches/010-libcxx.patch
Ilya Lipnitskiy 5d8d4fbbcb
treewide: Run refresh on all packages
The crude loop I wrote to come up with this changeset:

  find -L package/feeds/packages/ -name patches | \
  sed 's/patches$/refresh/' | sort | xargs make

Signed-off-by: Ilya Lipnitskiy <ilya.lipnitskiy@gmail.com>
2021-02-20 16:02:15 -08:00

22 lines
724 B
Diff

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> {