mirror of
https://github.com/boostorg/container.git
synced 2026-07-05 15:00:46 +02:00
Remove unneeded iterator increment for the "case 1" switch case
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user