Add assert to enable compilation with libcxx + gcc (#947)

This commit is contained in:
mjvankampen 2021-07-15 22:09:05 +01:00 committed by GitHub
parent ef0bba178d
commit 79aa6d53e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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