Optimize counting
This commit is contained in:
1 parent
6498bc6d31
commit
d39ebf3ff2
6 files changed
+23
-26
No files matched your search
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user