re PR libstdc++/47433 (libstdc++ parallel mode calls std::swap explicitely)

2011-02-11  Johannes Singler  <singler@kit.edu>

        PR libstdc++/47433
        * include/parallel/losertree.h
        (_LoserTreeUnguarded<>::__delete_min_insert):
        Add missing "using std::swap;", as for other variants.

From-SVN: r170047
This commit is contained in:
Johannes Singler 2011-02-11 10:11:41 +00:00 committed by Johannes Singler
parent 6dd2a13c9e
commit 0ad84c3fbb
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,10 @@
2011-02-11 Johannes Singler <singler@kit.edu>
PR libstdc++/47433
* include/parallel/losertree.h
(_LoserTreeUnguarded<>::__delete_min_insert):
Add missing "using std::swap;", as for other variants.
2011-02-10 Benjamin Kosnik <bkoz@redhat.com>
* src/Makefile.am (sources): Add regex.cc.

View File

@ -775,6 +775,7 @@ namespace __gnu_parallel
void
__delete_min_insert(_Tp __key, bool)
{
using std::swap;
#if _GLIBCXX_ASSERTIONS
// no dummy sequence can ever be at the top!
_GLIBCXX_PARALLEL_ASSERT(_M_losers[0]._M_source != -1);