You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
724 B

  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. Somehow this instantiates a template properly otherwise the build fails
  6. ---
  7. include/yaml-cpp/node/iterator.h | 2 ++
  8. 1 file changed, 2 insertions(+)
  9. --- a/include/yaml-cpp/node/iterator.h
  10. +++ b/include/yaml-cpp/node/iterator.h
  11. @@ -15,6 +15,8 @@
  12. #include <utility>
  13. #include <vector>
  14. +static_assert(std::is_constructible<YAML::Node, const YAML::Node&>::value, "Node must be copy constructable");
  15. +
  16. namespace YAML {
  17. namespace detail {
  18. struct iterator_value : public Node, std::pair<Node, Node> {