3 ms·
> And yeah, the logic of the function is easy to follow, so it's definitely not modern C++. It isn't easy to follow at all, count how many "+1" had to be added
by speps 8y ago
> And yeah, the logic of the function is easy to follow, so it's definitely not modern C++.
It isn't easy to follow at all, count how many "+1" had to be added just to get indices working right, it's a mine field of off by one errors.
- huhtenberg 8y ago> It isn't easy to follow at all You can't be serious.
- speps 8y agoYou just commented a suggested improvement which proves that it's not easy to follow code. Your suggestion is very good, you still had to process the previous code to understand and it wasn't clear at first.