mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2025-07-16 15:14:13 +00:00
fix next|prev_permutation implementations
This commit is contained in:
parent
057dec630c
commit
2c0b1d4513
8 changed files with 150 additions and 141 deletions
|
@ -59,7 +59,6 @@ namespace sprout {
|
|||
typename std::iterator_traits<RandomAccessIterator>::difference_type len
|
||||
)
|
||||
{
|
||||
typedef typename std::iterator_traits<RandomAccessIterator>::difference_type difference_type;
|
||||
typedef typename std::iterator_traits<RandomAccessIterator>::value_type value_type;
|
||||
if (len > 1) {
|
||||
len = (len - 2) / 2;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue