From 79952950384e600e961a3018ada702176e7abf0f Mon Sep 17 00:00:00 2001 From: Matt Blair Date: Mon, 27 Apr 2015 17:14:42 -0400 Subject: [PATCH] Remove use of 'boost/type_traits.h' --- include/yaml-cpp/node/detail/impl.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/yaml-cpp/node/detail/impl.h b/include/yaml-cpp/node/detail/impl.h index f6d218c..e419827 100644 --- a/include/yaml-cpp/node/detail/impl.h +++ b/include/yaml-cpp/node/detail/impl.h @@ -9,7 +9,7 @@ #include "yaml-cpp/node/detail/node.h" #include "yaml-cpp/node/detail/node_data.h" -#include +#include namespace YAML { namespace detail { @@ -23,8 +23,8 @@ struct get_idx { template struct get_idx< - Key, typename boost::enable_if_c::value && - !boost::is_same::value>::type> { + Key, typename std::enable_if::value && + !std::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; @@ -41,7 +41,7 @@ struct get_idx< }; template -struct get_idx >::type> { +struct get_idx::value >::type> { static node* get(const std::vector& sequence, const Key& key, shared_memory_holder pMemory) { return key >= 0 ? get_idx::get(