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?
A selection of things that are wrong with C++.
This entry was posted in The wonderful world of free software. Bookmark the permalink.
Kingdom of Loathing