Optimize counting

This commit is contained in:
Victor Zverovich committed 2019-10-21 06:57:42 -07:00
1 parent 6498bc6d31
commit d39ebf3ff2
6 files changed
+23 -26

No files matched your search

+1 -1
View File
@@ -182,7 +182,7 @@ TEST(UtilTest, ParseNonnegativeInt) {
}
TEST(IteratorTest, CountingIterator) {
fmt::internal::counting_iterator<char> it;
fmt::internal::counting_iterator it;
auto prev = it++;
EXPECT_EQ(prev.count(), 0);
EXPECT_EQ(it.count(), 1);