A selection of things that are wrong with C++.

I’ve found an anoying thing in C++. It’d seem that vectors lack a erase(int i) method, so that I have to use the erase(iterator iter) method instead. But since I still need to count with an int in my for loops, I have to manually make i and iter point at the same element. It annoys. It’s so unneccessary. The vector understands the [i] operator. It knows how to map an integer index to an object. Why can’t the bloody thing also do so in its methods?

0 Responses to “A selection of things that are wrong with C++.”


  1. No Comments

Leave a Reply