Interestingly, using a int * directly (rather than s.p) does not produce the false positive. Replacing the lambda function invocation by a literal or a "normal" function invocation does not trigger the false positive either.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
produces
Interestingly, using a int * directly (rather than s.p) does not produce the false positive. Replacing the lambda function invocation by a literal or a "normal" function invocation does not trigger the false positive either.
Thanks! I created ticket https://trac.cppcheck.net/ticket/9793