From 8bb3a85f68797710a591c4b29646f2ce89015fe6 Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Wed, 10 Sep 2014 15:37:21 +0200 Subject: [PATCH] Use local sfinae typedefs for yes_type and no_type. Remove dependency on Boost.Algorithm library. --- include/boost/range/detail/collection_traits_detail.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/boost/range/detail/collection_traits_detail.hpp b/include/boost/range/detail/collection_traits_detail.hpp index c9c3fb3..1545997 100644 --- a/include/boost/range/detail/collection_traits_detail.hpp +++ b/include/boost/range/detail/collection_traits_detail.hpp @@ -23,7 +23,6 @@ #include #include #include -#include // Container traits implementation --------------------------------------------------------- @@ -115,7 +114,10 @@ namespace boost { }; // Pair container traits --------------------------------------------------------------------- - + + typedef double yes_type; + typedef char no_type; + // pair selector template< typename T, typename U > yes_type is_pair_impl( const std::pair* );