`npos` is a static member, use it as such. Also, this condition is true for keys like `--9`, and they're not numbers.