diff options
Diffstat (limited to 'boost/algorithm/cxx11/partition_point.hpp')
-rw-r--r-- | boost/algorithm/cxx11/partition_point.hpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/boost/algorithm/cxx11/partition_point.hpp b/boost/algorithm/cxx11/partition_point.hpp index 36d8384b5..f1310c38c 100644 --- a/boost/algorithm/cxx11/partition_point.hpp +++ b/boost/algorithm/cxx11/partition_point.hpp @@ -19,10 +19,6 @@ namespace boost { namespace algorithm { -#if __cplusplus >= 201103L -// Use the C++11 versions of partition_point if it is available -using std::partition_point; // Section 25.3.13 -#else /// \fn partition_point ( ForwardIterator first, ForwardIterator last, Predicate p ) /// \brief Given a partitioned range, returns the partition point, i.e, the first element /// that does not satisfy p @@ -52,7 +48,6 @@ ForwardIterator partition_point ( ForwardIterator first, ForwardIterator last, P } return first; } -#endif /// \fn partition_point ( Range &r, Predicate p ) /// \brief Given a partitioned range, returns the partition point @@ -61,7 +56,7 @@ ForwardIterator partition_point ( ForwardIterator first, ForwardIterator last, P /// \param p The predicate to test the values with /// template <typename Range, typename Predicate> -typename boost::range_iterator<Range> partition_point ( Range &r, Predicate p ) +typename boost::range_iterator<Range>::type partition_point ( Range &r, Predicate p ) { return boost::algorithm::partition_point (boost::begin(r), boost::end(r), p); } |