warning: Iterators to containers from different expressions 'std::ranges::unique(v)' and 'v' are used together. [mismatchingContainerExpression]
v.erase(std::ranges::unique(v).begin(), v.end());
^
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello
Using Cppcheck-2.21.0 I get a warning here:
warning: Iterators to containers from different expressions 'std::ranges::unique(v)' and 'v' are used together. [mismatchingContainerExpression]
v.erase(std::ranges::unique(v).begin(), v.end());
^
Thanks for reporting, ticket is here: https://trac.cppcheck.net/ticket/14908