Hurray for IanM! I dont know why that didnt work before... All I did was include the directory in my projects folder, then say #include "boost\array.hpp". Works great now
boost::array< boost::array< int , 16 > , 16 > terrainObj;
//--> Uh oh!
for ( int x = 0; x < 17; x++ ) {
for ( int z = 0; z < 16; z++ ) {
terrainObj[x][z] = 0;
}
}
Now it crashes as it should! I wont even have to rewrite any of my code, just change the declarations!
And it DOESNT crash in release mode, which is good right? That means it doesnt waste time doing bounds checks in release mode?
hurray for boost!
All you need is zeal