KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I test my C++ code with googletest. When a vector::_M_range_check exception is thrown because a std::vector is accessed with a wrong index, googletest reports: C++ exception with description "vector::_M_range_check" thrown in the test body. Great, now I'd also like to know which vector, which index and which range. How can I easily get this information, keeping the test code in googletest unit test cases? (I almost begin long for Java with its good old IndexOutOfBoundsException ...)
Tags (comma-separated)
Save Edits
Cancel