[test.cc:6]: (style) The function 'operator>>' is never used.
but operator>>(std::istream&, Event&) is used in operator>>(std::istream&, std::vector<Event>&), which is in turn used in main. (Am I doing something wrong?)
Thanks in advance for your consideration.
All the best,
Last edit: Armando di Matteo 2021-02-17
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello everyone -- I think I might have found a bug in cppcheck.
If I have this file:
and I do
cppcheck --enable=all test.cc
then it says:
[test.cc:6]: (style) The function 'operator>>' is never used.
but operator>>(std::istream&, Event&) is used in operator>>(std::istream&, std::vector<Event>&), which is in turn used in main. (Am I doing something wrong?)
Thanks in advance for your consideration.
All the best,
Last edit: Armando di Matteo 2021-02-17