Explorar o código

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

escherstair %!s(int64=6) %!d(string=hai) anos
pai
achega
1503608aaa
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 "