quote:Original post by davepermenNo. It makes simple calculations and comparisons more cumbersome when you have to keep in mind that the values can''t get negative.
uhm.. you don''t like unsigned int?..
if (a - b >= 0) //oops, always true
if (a >= b) //a working variant
Thus uint is non-intuivive. The double plus range is useless almost always and the lack of negative values can bite you in the ass. Why should I like it? You tell me.
quote:guess so, operator [] should have one parameter, and that one parameter is of type size_t (at least in the std:: namespace objects)..I know. I never claimed I liked STL''s way of doing it.
guess what size_t is?!?