Closed lawfordp2017 closed 2 years ago
string::find returns npos which is type size_t and = -1 but size_t is unsigned so comparisons to negative values will always fail.
Good catch.
string::find returns npos which is type size_t and = -1 but size_t is unsigned so comparisons to negative values will always fail.