d:\programs\upp-svn\MyApps\StdVecTst\StdVecTst.cpp: In function `int main()':
d:\programs\upp-svn\MyApps\StdVecTst\StdVecTst.cpp:38: error: `out_of_range' has not been declared
d:\programs\upp-svn\MyApps\StdVecTst\StdVecTst.cpp:38: error: invalid catch parameter
d:\programs\upp-svn\MyApps\StdVecTst\StdVecTst.cpp:38: error: `...' handler must be the last handler for its try block
After looking through c++ headers, I found I need to include 'stdexcept' and then it compiles fine. It is nowhere included in the other headers. I assume MSC includes it somewhere in vector headers and that's why there is no problem.