prefer prefix ++/-- operators for non-primitive types
parent
2405b3b5ba
commit
1503608aaa
|
@ -196,7 +196,7 @@ TEST(IteratorTest, ParamIteratorConformsToForwardIteratorConcept) {
|
||||||
<< "element same as its source points to";
|
<< "element same as its source points to";
|
||||||
|
|
||||||
// Verifies that iterator assignment works as expected.
|
// Verifies that iterator assignment works as expected.
|
||||||
it++;
|
++it;
|
||||||
EXPECT_FALSE(*it == *it2);
|
EXPECT_FALSE(*it == *it2);
|
||||||
it2 = it;
|
it2 = it;
|
||||||
EXPECT_TRUE(*it == *it2) << "Assigned iterators must point to the "
|
EXPECT_TRUE(*it == *it2) << "Assigned iterators must point to the "
|
||||||
|
|
Loading…
Reference in New Issue