This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/59603] std::random_shuffle tries to swap element with itself
- From: "joerg dot richter at pdv-fs dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 09 Feb 2014 17:31:02 +0000
- Subject: [Bug libstdc++/59603] std::random_shuffle tries to swap element with itself
- Auto-submitted: auto-generated
- References: <bug-59603-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59603
--- Comment #4 from JÃrg Richter <joerg.richter@pdv-fs.de> ---
Are you sure that this is not a iter_swap problem? I have found nothing in the
standard that iter_swap( x, x ) is undefined.
I always thought types do not have to be prepared to handle self move
assignment.