M
McGragger
I recently have upgraded compilers and my new one enables iterator
checking. When a vector is empty, &v[0] blows up, as it should I
guess. In replacing these I have been torn in using
&*v.begin() or &v.front()
Does anyone prefer one over the other? Why?
checking. When a vector is empty, &v[0] blows up, as it should I
guess. In replacing these I have been torn in using
&*v.begin() or &v.front()
Does anyone prefer one over the other? Why?