Skip to content

Commit f023127

Browse files
committed
Fix some test failures in Boost.Algorithm
[SVN r77070]
1 parent 43c01ff commit f023127

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

include/boost/algorithm/cxx11/ordered.hpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ using std::is_sorted; // Section 25.4.1.5
6262
ForwardIterator is_sorted_until ( ForwardIterator first, ForwardIterator last )
6363
{
6464
typedef typename std::iterator_traits<ForwardIterator>::value_type value_type;
65-
return is_sorted_until ( first, last, std::less_equal<value_type>());
65+
return boost::algorithm::is_sorted_until ( first, last, std::less_equal<value_type>());
6666
}
6767

6868

@@ -76,7 +76,7 @@ using std::is_sorted; // Section 25.4.1.5
7676
template <typename ForwardIterator, typename Pred>
7777
bool is_sorted ( ForwardIterator first, ForwardIterator last, Pred p )
7878
{
79-
return is_sorted_until (first, last, p) == last;
79+
return boost::algorithm::is_sorted_until (first, last, p) == last;
8080
}
8181

8282
/// \fn is_sorted ( ForwardIterator first, ForwardIterator last )
@@ -88,7 +88,7 @@ using std::is_sorted; // Section 25.4.1.5
8888
template <typename ForwardIterator>
8989
bool is_sorted ( ForwardIterator first, ForwardIterator last )
9090
{
91-
return is_sorted_until (first, last) == last;
91+
return boost::algorithm::is_sorted_until (first, last) == last;
9292
}
9393
#endif
9494

@@ -109,7 +109,7 @@ using std::is_sorted; // Section 25.4.1.5
109109
typename boost::range_iterator<const R>
110110
>::type is_sorted_until ( const R &range, Pred p )
111111
{
112-
return is_sorted_until ( boost::begin ( range ), boost::end ( range ), p );
112+
return boost::algorithm::is_sorted_until ( boost::begin ( range ), boost::end ( range ), p );
113113
}
114114

115115

@@ -121,7 +121,7 @@ using std::is_sorted; // Section 25.4.1.5
121121
template <typename R>
122122
typename boost::range_iterator<const R>::type is_sorted_until ( const R &range )
123123
{
124-
return is_sorted_until ( boost::begin ( range ), boost::end ( range ));
124+
return boost::algorithm::is_sorted_until ( boost::begin ( range ), boost::end ( range ));
125125
}
126126

127127

@@ -135,7 +135,7 @@ using std::is_sorted; // Section 25.4.1.5
135135
template <typename R, typename Pred>
136136
bool is_sorted ( const R &range, Pred p )
137137
{
138-
return is_sorted ( boost::begin ( range ), boost::end ( range ), p );
138+
return boost::algorithm::is_sorted ( boost::begin ( range ), boost::end ( range ), p );
139139
}
140140

141141

@@ -147,7 +147,7 @@ using std::is_sorted; // Section 25.4.1.5
147147
template <typename R, typename Pred>
148148
bool is_sorted ( const R &range )
149149
{
150-
return is_sorted ( boost::begin ( range ), boost::end ( range ));
150+
return boost::algorithm::is_sorted ( boost::begin ( range ), boost::end ( range ));
151151
}
152152

153153

@@ -201,7 +201,7 @@ using std::is_sorted; // Section 25.4.1.5
201201
bool is_decreasing ( ForwardIterator first, ForwardIterator last )
202202
{
203203
typedef typename std::iterator_traits<ForwardIterator>::value_type value_type;
204-
return is_sorted (first, last, std::greater_equal<value_type>());
204+
return boost::algorithm::is_sorted (first, last, std::greater_equal<value_type>());
205205
}
206206

207207
/// \fn is_decreasing ( const R &range )
@@ -264,7 +264,7 @@ using std::is_sorted; // Section 25.4.1.5
264264
bool is_strictly_decreasing ( ForwardIterator first, ForwardIterator last )
265265
{
266266
typedef typename std::iterator_traits<ForwardIterator>::value_type value_type;
267-
return is_sorted (first, last, std::greater<value_type>());
267+
return boost::algorithm::is_sorted (first, last, std::greater<value_type>());
268268
}
269269

270270
/// \fn is_strictly_decreasing ( const R &range )

include/boost/algorithm/cxx11/partition_copy.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
#ifndef BOOST_ALGORITHM_PARTITION_COPY_HPP
1313
#define BOOST_ALGORITHM_PARTITION_COPY_HPP
1414

15+
#include <utility> // for make_pair
16+
1517
#include <boost/range/begin.hpp>
1618
#include <boost/range/end.hpp>
1719

0 commit comments

Comments
 (0)