Browse Source

prefer prefix ++/-- operators for non-primitive types

escherstair 6 năm trước cách đây
mục cha
commit
1503608aaa
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      contrib/gtest/test/gtest-param-test_test.cc

+ 1 - 1
contrib/gtest/test/gtest-param-test_test.cc

@@ -196,7 +196,7 @@ TEST(IteratorTest, ParamIteratorConformsToForwardIteratorConcept) {
                            << "element same as its source points to";
 
   // Verifies that iterator assignment works as expected.
-  it++;
+  ++it;
   EXPECT_FALSE(*it == *it2);
   it2 = it;
   EXPECT_TRUE(*it == *it2) << "Assigned iterators must point to the "