One of the weirdest C++ beliefs is that changing “Foo *” to “Foo &” and “foo->x” to “foo.x” suddenly makes all memory safety problems disappear.
-
-
Honestly, I work in formal methods, and I think using "at" is the worst thing you can do in C++. It does not fix anything.
-
If your code is in development phase, you do not need an exception: assertions do the job.
- 3 more replies
New conversation -
-
-
Wait what, that's what at() is for?! I've been using C++ for 20 years now and was totally unaware of that being the distinction between the two
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.