
4 Dec
2011
4 Dec
'11
5:02 p.m.
On Sun, Dec 4, 2011 at 5:46 PM, Vicente J. Botet Escriba <vicente.botet@wanadoo.fr> wrote:
which is the correct type used as index of operator[]. scoped_array uses std::ptrdiff_t. Others containers use std::size_t.
If [-1] might be valid, ptrdiff_t makes sense. Otherwise, I'd opt for size_t.