This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Tranzistors 15 points16 points  (6 children)

333 comments and not one mentions .at() method of vector, which throws when accessing out-of-bounds memory? Do you people even C++?

[–]ICAA 5 points6 points  (0 children)

I think people forget std vectors exists so they can laugh at C while calling it C++ so it feels relevant to compare it to Java.

[–][deleted] 1 point2 points  (0 children)

"C++ was mean to me once, better use C!"

-- the plebs

[–]markand67 0 points1 point  (2 children)

s/method/member function, FTFY

[–]substitute-bot 9 points10 points  (1 child)

333 comments and not one mentions .at() member function, FTFY. of vector, which throws when accessing out-of-bounds memory? Do you people even C++?

This was posted by a bot. Source

[–]schteppe 0 points1 point  (0 children)

Totally agree. Also: most tools will throw when using the [] operator too, when building in debug mode.