Closed cpi47 closed 3 years ago
Thanks for the patch. We've taken it as cue to add cppcheck to our internal CI pipeline and fixed all the issues reported, incl. this one (differently, to avoid any copyright problems). Should show up in this repo in a few days.
By making it a static method, the method interface ensures that no members are modified. This was i.e. detected as a warning by CppCheck :"Assert statement calls a function which may have desired side effects: 'canCompare'."