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?

This entry was posted in The wonderful world of free software. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>