Adds assert to enable compilation with libcxx+gcc

Somehow this instantiates a template properly otherwise the build fails
This commit is contained in:
Mark Jan van Kampen 2020-10-13 11:19:57 +02:00
parent 98acc5a887
commit 78f338e4ee
No known key found for this signature in database
GPG Key ID: 942C8E0E0D996934

View File

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