prefer prefix ++/-- operators for non-primitive types
parent
ceacad237f
commit
bbb1f6a1dc
|
@ -215,7 +215,7 @@ TEST(IteratorTest, ParamIteratorConformsToForwardIteratorConcept) {
|
||||||
// Verifies that prefix and postfix operator++() advance an iterator
|
// Verifies that prefix and postfix operator++() advance an iterator
|
||||||
// all the same.
|
// all the same.
|
||||||
it2 = it;
|
it2 = it;
|
||||||
it++;
|
++it;
|
||||||
++it2;
|
++it2;
|
||||||
EXPECT_TRUE(*it == *it2);
|
EXPECT_TRUE(*it == *it2);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue