I\'m using Visual Studio 2008.
I\'m aware that std::vector has bounds checking with the at() function and has undefined behaviour if you try to access something usin
Enable the flag _GLIBCXX_DEBUG to do bounds checking on STL containers, as discussed here: http://gcc.gnu.org/onlinedocs/libstdc++/manual/debug_mode.html