mirror of
https://github.com/boostorg/container.git
synced 2026-08-04 03:34:11 +02:00
Scope segduo return type, in some compilers, this saves a bit of stack.
This commit is contained in:
@@ -207,11 +207,12 @@ SegIt segmented_partition_dispatch(SegIt first, SegIt last, Pred pred, segmented
|
||||
while (sf != sl) {
|
||||
const local_iterator f_end = traits::end(sf);
|
||||
const local_iterator l_beg = traits::begin(sl);
|
||||
|
||||
const segduo<local_iterator, local_iterator> r =
|
||||
partition_disjoint_bidir_ranges(f_loc, f_end, l_beg, l_loc, pred, is_local_seg_t(), local_cat_t());
|
||||
f_loc = r.first;
|
||||
l_loc = r.second;
|
||||
{
|
||||
const segduo<local_iterator, local_iterator> r =
|
||||
partition_disjoint_bidir_ranges(f_loc, f_end, l_beg, l_loc, pred, is_local_seg_t(), local_cat_t());
|
||||
f_loc = r.first;
|
||||
l_loc = r.second;
|
||||
}
|
||||
|
||||
if (f_loc == f_end) {
|
||||
++sf;
|
||||
|
||||
Reference in New Issue
Block a user