-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When i==arg.size(), arg[i] is out of bounds. #830
Comments
That does look very suspicious. It shouldn't be out of bounds as the character at |
I just found it by using a code coverage/linter stuff, never experimented an issue related to it. |
C++03 does not guarantee there being Granted, I don't think there is an implementation that does not have it there, but it's better to be safe than sorry. |
Agreed. I'll change it once I've checked for side-effects |
Great. |
https://github.com/philsquared/Catch/blob/master/single_include/catch.hpp#L4435
Shouldn't it be
for( std::size_t i = 0; i < arg.size(); ++i )
?The text was updated successfully, but these errors were encountered: