diff --git a/include/yaml-cpp/node/detail/impl.h b/include/yaml-cpp/node/detail/impl.h index b04fc05..c618758 100644 --- a/include/yaml-cpp/node/detail/impl.h +++ b/include/yaml-cpp/node/detail/impl.h @@ -22,7 +22,7 @@ namespace YAML }; template - struct get_idx >::type> { + struct get_idx::value && !boost::is_same::value>::type> { static node *get(const std::vector& sequence, const Key& key, shared_memory_holder /* pMemory */) { return key < sequence.size() ? sequence[key] : 0; }