diff --git a/include/boost/algorithm/cxx11/is_permutation.hpp b/include/boost/algorithm/cxx11/is_permutation.hpp index 31470c7..f03e0e5 100644 --- a/include/boost/algorithm/cxx11/is_permutation.hpp +++ b/include/boost/algorithm/cxx11/is_permutation.hpp @@ -97,13 +97,12 @@ bool is_permutation ( ForwardIterator1 first1, ForwardIterator1 last1, /// We will use the standard one if it is available, /// otherwise we have our own implementation. template< class ForwardIterator1, class ForwardIterator2 > -bool is_permutation ( ForwardIterator1 first, ForwardIterator1 last, - ForwardIterator2 first2 ) +bool is_permutation ( ForwardIterator1 first, ForwardIterator1 last, ForwardIterator2 first2 ) { // How should I deal with the idea that ForwardIterator1::value_type // and ForwardIterator2::value_type could be different? Define my own comparison predicate? return boost::algorithm::is_permutation ( first, last, first2, - std::equal_to ()); + std::equal_to::value_type> ()); } #endif diff --git a/include/boost/algorithm/cxx11/ordered.hpp b/include/boost/algorithm/cxx11/ordered.hpp index b9522df..bd8968e 100644 --- a/include/boost/algorithm/cxx11/ordered.hpp +++ b/include/boost/algorithm/cxx11/ordered.hpp @@ -168,7 +168,7 @@ using std::is_sorted; // Section 25.4.1.5 bool is_increasing ( ForwardIterator first, ForwardIterator last ) { typedef typename std::iterator_traits::value_type value_type; - return is_sorted (first, last, std::less_equal()); + return boost::algorithm::is_sorted (first, last, std::less_equal()); } diff --git a/include/boost/algorithm/cxx11/partition_copy.hpp b/include/boost/algorithm/cxx11/partition_copy.hpp index 15cce19..17db978 100644 --- a/include/boost/algorithm/cxx11/partition_copy.hpp +++ b/include/boost/algorithm/cxx11/partition_copy.hpp @@ -50,7 +50,7 @@ partition_copy ( InputIterator first, InputIterator last, *out_true++ = *first; else *out_false++ = *first; - return std::make_pair ( out_true, out_false ); + return std::pair ( out_true, out_false ); } #endif