From: François Dumont Date: Tue, 9 Nov 2010 15:34:58 +0000 (+0100) Subject: algobase.h (equal): Call parallel variant for applicable overloads. X-Git-Tag: releases/gcc-4.6.0~2782 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=de084f55c6b2e2908401f520858a58e4ad8268fc;p=thirdparty%2Fgcc.git algobase.h (equal): Call parallel variant for applicable overloads. 2010-11-09 François Dumont Johannes Singler * include/parallel/algobase.h (equal): Call parallel variant for applicable overloads. Co-Authored-By: Johannes Singler From-SVN: r166494 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 742083107b00..51cf2eb1916a 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,9 @@ +2010-11-09 François Dumont + Johannes Singler + + * include/parallel/algobase.h (equal): Call parallel variant + for applicable overloads. + 2010-11-09 Paolo Carlini * include/bits/stl_tree.h (_Rb_tree<>::_M_const_cast_iter): Add diff --git a/libstdc++-v3/include/parallel/algobase.h b/libstdc++-v3/include/parallel/algobase.h index 9cc81bd2aaa8..bca81cdaf226 100644 --- a/libstdc++-v3/include/parallel/algobase.h +++ b/libstdc++-v3/include/parallel/algobase.h @@ -142,8 +142,7 @@ namespace __parallel inline bool equal(_IIter1 __begin1, _IIter1 __end1, _IIter2 __begin2) { - return _GLIBCXX_STD_P::mismatch(__begin1, __end1, __begin2).first - == __end1; + return mismatch(__begin1, __end1, __begin2).first == __end1; } // Public interface @@ -152,8 +151,7 @@ namespace __parallel equal(_IIter1 __begin1, _IIter1 __end1, _IIter2 __begin2, _Predicate __pred) { - return _GLIBCXX_STD_P::mismatch(__begin1, __end1, __begin2, __pred).first - == __end1; + return mismatch(__begin1, __end1, __begin2, __pred).first == __end1; } // Sequential fallback