Skip to content

Commit 79aa6d5

Browse files
authored
Add assert to enable compilation with libcxx + gcc (#947)
1 parent ef0bba1 commit 79aa6d5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

include/yaml-cpp/node/iterator.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515
#include <utility>
1616
#include <vector>
1717

18+
// Assert in place so gcc + libc++ combination properly builds
19+
static_assert(std::is_constructible<YAML::Node, const YAML::Node&>::value, "Node must be copy constructable");
20+
1821
namespace YAML {
1922
namespace detail {
2023
struct iterator_value : public Node, std::pair<Node, Node> {

0 commit comments

Comments
 (0)