Not irony. I would very much like vector<T>::iterator to be T*. Keep it simple.
-
-
E.g. in Haskell, you'd have to say you're reading the list once then iterating over it and ignoring any changes made to the reference, or that you're reading it at each iteration to see if you're past the end. And then what to do if you write past the end after truncation.
-
In contract, C++ is all hand-wavy about "don't do that while this other thing is happening, it's undefined behaviour". Which maybe one can live with in a little block of code, but it fails at the scale of big loops iterating global state and calling functions affecting it.
- 1 more reply
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.