Remove unneeded iterator increment for the "case 1" switch case

This commit is contained in:
Ion Gaztañaga
2026-03-29 17:26:15 +02:00
parent f566b64272
commit b68fceb101
2 changed files with 2 additions and 2 deletions
@@ -57,7 +57,7 @@ F segmented_for_each_dispatch
f(*first); ++first;
BOOST_FALLTHROUGH;
case 1:
f(*first); ++first;
f(*first); //No need to increment first since we're done after this.
BOOST_FALLTHROUGH;
default:
break;
@@ -56,7 +56,7 @@ void segmented_generate_dispatch
*first = gen(); ++first;
BOOST_FALLTHROUGH;
case 1:
*first = gen(); ++first;
*first = gen(); //No need to increment first since we're done after this.
BOOST_FALLTHROUGH;
default:
break;