Skip to content

Commit

Permalink
Add assert to enable compilation with libcxx + gcc (jbeder#947)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjvankampen authored Jul 15, 2021
1 parent ef0bba1 commit 79aa6d5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/yaml-cpp/node/iterator.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
#include <utility>
#include <vector>

// Assert in place so gcc + libc++ combination properly builds
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> {
Expand Down

0 comments on commit 79aa6d5

Please sign in to comment.