Intel's equivalnce of g++'s -D_GLIBCXX_DEBUG

Intel's equivalnce of g++'s -D_GLIBCXX_DEBUG

Hi, can the Intel c++ compile do something similar to the D_GLIBCXX_DEBUG flag in g++ ? One of the features I need from this flag is allow range checking even when using [] on vector.

For example

vector < int > a , a.push_back(1);

so if I access a[1] , which is out of range, normal compiled program will not checked it as it uses [] but g++'s D_GLIBCXX_DEBUG compiled program will check it. (Yes I am well aware of .at() but it's slow)

1 post / 0 new
For more complete information about compiler optimizations, see our Optimization Notice.