mirror of
https://github.com/boostorg/core.git
synced 2025-07-30 04:47:24 +02:00
Optimized calculation of container sizes
This commit is contained in:
@ -223,16 +223,8 @@ void test_all_eq_impl(FormattedOutputFunction& output,
|
|||||||
++error_count;
|
++error_count;
|
||||||
} while (first_it != first_end);
|
} while (first_it != first_end);
|
||||||
|
|
||||||
while (first_it != first_end)
|
first_index += std::distance(first_it, first_end);
|
||||||
{
|
second_index += std::distance(second_it, second_end);
|
||||||
++first_it;
|
|
||||||
++first_index;
|
|
||||||
}
|
|
||||||
while (second_it != second_end)
|
|
||||||
{
|
|
||||||
++second_it;
|
|
||||||
++second_index;
|
|
||||||
}
|
|
||||||
if (first_index != second_index)
|
if (first_index != second_index)
|
||||||
{
|
{
|
||||||
if (error_count == 0)
|
if (error_count == 0)
|
||||||
|
Reference in New Issue
Block a user