> > > > I notice "operator[](i)" is used in the interesting, > > With std::vector, you could also use array.at(i), which is equivalent. > > vector::at will do a runtime check if the index is out of bounds, in that case it throws an exception.
vector::operator[] will not do this check, causing undefined behavior when accessing elements out of bounds. Nicky
_______________________________________________ Policies and (un)subscribe information available here: http://wiki.secondlife.com/wiki/OpenSource-Dev Please read the policies before posting to keep unmoderated posting privileges