We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c768200 commit d9476d6Copy full SHA for d9476d6
1 file changed
test/cfg/std.cpp
@@ -5034,12 +5034,12 @@ struct T_constParameter_std_begin {
5034
};
5035
5036
void f(S_constParameter_std_begin& s) {
5037
- std::for_each(std::begin(s.a), std::end(s.a), [](auto& i) { ++i; });
+ std::for_each(std::begin(s.a), std::end(s.a), [](int& i) { ++i; });
5038
}
5039
5040
// cppcheck-suppress constParameterReference - FP
5041
void f(T_constParameter_std_begin& t) {
5042
- std::for_each(std::begin(t.v), std::end(t.v), [](auto& i) { ++i; });
+ std::for_each(std::begin(t.v), std::end(t.v), [](int& i) { ++i; });
5043
5044
5045
void g_constVariable_std_begin(int* p) { *p = 0; }
0 commit comments