base.h (_EqualFromLess): Move _Compare template parameter to the end as of others.

2009-09-24  Johannes Singler  <singler@ira.uka.de>

        * include/parallel/base.h (_EqualFromLess):  Move _Compare template
        parameter to the end as of others.
        * include/parallel/algobase.h
        (__lexicographical_compare_switch): Likewise.

From-SVN: r152112
This commit is contained in:
Johannes Singler 2009-09-24 07:40:37 +00:00 committed by Johannes Singler
parent 7f7d7fa673
commit 2a2e7f9dc5
3 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,10 @@
2009-09-24 Johannes Singler <singler@ira.uka.de>
* include/parallel/base.h (_EqualFromLess): Move _Compare template
parameter to the end as of others.
* include/parallel/algobase.h
(__lexicographical_compare_switch): Likewise.
2009-09-23 Johannes Singler <singler@ira.uka.de>
* include/parallel/algobase.h: Uglify internal identifiers;

View File

@ -198,7 +198,7 @@ namespace __parallel
typedef typename _TraitsType2::value_type _ValueType2;
typedef __gnu_parallel::
_EqualFromLess<_Predicate, _ValueType1, _ValueType2>
_EqualFromLess<_ValueType1, _ValueType2, _Predicate>
_EqualFromLessCompare;
// Longer sequence in first place.

View File

@ -154,8 +154,7 @@ template<typename _Tp>
/** @brief Constructs predicate for equality from strict weak
* ordering predicate
*/
// XXX comparator at the end, as per others
template<typename _Compare, typename _T1, typename _T2>
template<typename _T1, typename _T2, typename _Compare>
class _EqualFromLess : public std::binary_function<_T1, _T2, bool>
{
private: