Closed
Description
Some objects can have a size()
which returns negative values and also have an empty()
method.
In this case, size() < 0
is not the same thing as empty()
.
Currently readability-container-size-empty
converts x.size() < 0
to x.empty()
- this has caused some real problems for us was an unexpected behaviour that isn't made explicit in either the documentation or the code itself.