Hi, the following code :
void f ( std::map< int, int > & m ) { std::cout << m[ 0 ] << std::endl; }
reports when enabling style:
style: Parameter 'm' can be declared with const [constParameter]
but m cannot be const. Tested with today's HEAD version (2.7 dev).
Thanks for reporting, this is fixed by https://github.com/danmar/cppcheck/pull/3823
Log in to post a comment.
Hi, the following code :
reports when enabling style:
but m cannot be const. Tested with today's HEAD version (2.7 dev).
Thanks for reporting, this is fixed by https://github.com/danmar/cppcheck/pull/3823