mirror of
https://github.com/boostorg/core.git
synced 2025-07-29 20:37:22 +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;
|
||||
} while (first_it != first_end);
|
||||
|
||||
while (first_it != first_end)
|
||||
{
|
||||
++first_it;
|
||||
++first_index;
|
||||
}
|
||||
while (second_it != second_end)
|
||||
{
|
||||
++second_it;
|
||||
++second_index;
|
||||
}
|
||||
first_index += std::distance(first_it, first_end);
|
||||
second_index += std::distance(second_it, second_end);
|
||||
if (first_index != second_index)
|
||||
{
|
||||
if (error_count == 0)
|
||||
|
Reference in New Issue
Block a user