Another weird C++ belief: Modern C++ doesn’t use raw pointers. If that were true, modern C++ can’t use methods, because “this” is a raw pointer.
-
-
Show this thread
-
How am I supposed to believe that modern C++ takes memory safety seriously when people don’t even use .at() instead of unchecked array indexing most of the time?
Show this thread
End of conversation
New conversation -
-
-
oooh, that was one of my first SO questions, a decade ago.https://stackoverflow.com/questions/3097593/what-happens-when-c-reference-leaves-its-scope …
-
Awesome read.
End of conversation
New conversation -
-
-
I recall the first time I managed to somehow get a null pointer into a reference... fun times. Fun times.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Do you actually know people that believe that?
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Crap does that not work?
-
I mean const foo & is basically like borrowing a ref right? Right?!?!?
- 1 more reply
New conversation -
-
This Tweet is unavailable.
-
-
(my opinion, not strictly The Truth) the point of references is stating you're not owning the memory referenced and it's some else's problem up in your call stack
-
Excepting statically-initialised references to static target...
End of conversation
New conversation -
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.