This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/47433] libstdc++ parallel mode calls std::swap explicitely
- From: "singler at kit dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 24 Jan 2011 13:55:44 +0000
- Subject: [Bug libstdc++/47433] libstdc++ parallel mode calls std::swap explicitely
- Auto-submitted: auto-generated
- References: <bug-47433-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47433
--- Comment #9 from Johannes Singler <singler at kit dot edu> 2011-01-24 13:55:33 UTC ---
I have made the attached minimal patch.
Use std::iter_swap where possible, use swap for _Tp, and leave std::swap for
built-in types. I will test and then submit the patch.
Johannes