From f5418306d696f2cce1927d178d24d04db3922322 Mon Sep 17 00:00:00 2001 From: Jesse Beder Date: Mon, 1 Apr 2013 22:06:09 -0500 Subject: [PATCH] Explicity disallow get_idx for boolean type, to avoid ambiguity with a map. --- include/yaml-cpp/node/detail/impl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }