From 7e306f41b0b1930e3cb20c533ccd665a71e73c7e Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Wed, 13 Jun 2012 09:52:00 +0200 Subject: correct documentation, sf#2186611 std::vector::at() throws std::out_of_range and not std::invalid_argument --- include/cppunit/extensions/HelperMacros.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/cppunit') diff --git a/include/cppunit/extensions/HelperMacros.h b/include/cppunit/extensions/HelperMacros.h index 12431e4..c461b1b 100644 --- a/include/cppunit/extensions/HelperMacros.h +++ b/include/cppunit/extensions/HelperMacros.h @@ -308,13 +308,13 @@ * #include * class MyTest : public CppUnit::TestFixture { * CPPUNIT_TEST_SUITE( MyTest ); - * CPPUNIT_TEST_EXCEPTION( testVectorAtThrow, std::invalid_argument ); + * CPPUNIT_TEST_EXCEPTION( testVectorAtThrow, std::out_of_range ); * CPPUNIT_TEST_SUITE_END(); * public: * void testVectorAtThrow() * { * std::vector v; - * v.at( 1 ); // must throw exception std::invalid_argument + * v.at( 1 ); // must throw exception std::out_of_range * } * }; * \endcode -- cgit v1.2.1