Commit 0ad84c3f by Johannes Singler Committed by Johannes Singler

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
parent 6dd2a13c
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> 2011-02-10 Benjamin Kosnik <bkoz@redhat.com>
* src/Makefile.am (sources): Add regex.cc. * src/Makefile.am (sources): Add regex.cc.
......
...@@ -775,6 +775,7 @@ namespace __gnu_parallel ...@@ -775,6 +775,7 @@ namespace __gnu_parallel
void void
__delete_min_insert(_Tp __key, bool) __delete_min_insert(_Tp __key, bool)
{ {
using std::swap;
#if _GLIBCXX_ASSERTIONS #if _GLIBCXX_ASSERTIONS
// no dummy sequence can ever be at the top! // no dummy sequence can ever be at the top!
_GLIBCXX_PARALLEL_ASSERT(_M_losers[0]._M_source != -1); _GLIBCXX_PARALLEL_ASSERT(_M_losers[0]._M_source != -1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment