Yeah this doesn't convince me
The bug example there, sure, needs a signed type, so you can't blame the type for its wrong usage
I've had more bugs coming from using signed types that I'll not be bothered by writing 'unsigned' ever again
The bug example there, sure, needs a signed type, so you can't blame the type for its wrong usage
I've had more bugs coming from using signed types that I'll not be bothered by writing 'unsigned' ever again
std::size_t i = foo.size();
while (i != 0) {
--i;
...
}It's also worth pointing out the style of loop they give can't be used at all if you are counting down iterators or pointers instead of numbers.