Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Extra libraries, Code snippets, applications etc. » C++ language problems and code snippets » Template problem
Re: Template problem [message #14307 is a reply to message #14284] Fri, 22 February 2008 11:00 Go to previous messageGo to previous message
masu is currently offline  masu
Messages: 378
Registered: February 2006
Senior Member
Concerning the exception, I get the error:
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.

WinXP, Mingw 3.4.2

Matthias
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Try / catch
Next Topic: multiple classes include-problem
Goto Forum:
  


Current Time: Sat Apr 20 10:38:57 CEST 2024

Total time taken to generate the page: 0.03320 seconds