This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/11364] half of permuations missing
- From: "craie at acm dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Jun 2003 02:46:15 -0000
- Subject: [Bug libstdc++/11364] half of permuations missing
- References: <20030629013049.11364.craie@acm.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11364
------- Additional Comments From craie at acm dot org 2003-06-29 02:46 -------
Created an attachment (id=4300)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=4300&action=view)
small program to count permutations from next_permutation
seems the permutation can't handle lists with duplicates properly.
the base permutation is defined as ascending order from [first,last).
this is not necessarily of unique values, however, but of all the
values in that range of iterators.