Optimized calculation of container sizes

This commit is contained in:
Bjorn Reese
2017-02-12 15:08:25 +01:00
parent d828e40f6d
commit baed4103a0

View File

@ -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)