Re: bounds checking in STL containers

2012-10-16 Thread Florian Weimer
On 10/15/2012 07:14 PM, Ахриев Альберт wrote: Two-three generations ago g++ was very cautious about consistency checking but not now. Not sure if this is true. The at() member function performs such checking, but not operator[]. We looked at bounds checking for operator[] under -D_FORTIFY

Re: bounds checking in STL containers

2012-10-15 Thread Jonathan Wakely
On 15 October 2012 18:14, Ахриев Альберт wrote: > Hi All, > > It appears that operator[] in STL containers (e.g. vector, deque) does not > check bounds any more (g++ 4.7.2). If you want to discuss the C++ library then you should mail the libstd...@gcc.gnu.org list. > Two-three generations ago g+

bounds checking in STL containers

2012-10-15 Thread Ахриев Альберт
Hi All, It appears that operator[] in STL containers (e.g. vector, deque) does not check bounds any more (g++ 4.7.2). Two-three generations ago g++ was very cautious about consistency checking but not now. I would appeal to developers to reconsider this pretty tough decision. I have recently