Explorar o código

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

escherstair %!s(int64=6) %!d(string=hai) anos
pai
achega
bbb1f6a1dc
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

@@ -215,7 +215,7 @@ TEST(IteratorTest, ParamIteratorConformsToForwardIteratorConcept) {
   // Verifies that prefix and postfix operator++() advance an iterator
   // all the same.
   it2 = it;
-  it++;
+  ++it;
   ++it2;
   EXPECT_TRUE(*it == *it2);
 }