diff --git a/array0.cpp b/array0.cpp index e6e5e8b..065256b 100644 --- a/array0.cpp +++ b/array0.cpp @@ -85,12 +85,12 @@ void RunTests() // Confirm at() throws the std lib defined exception try { BadValue( test_case.at( 0 ) ); - } catch ( const std::range_error & ) { + } catch ( const std::out_of_range & ) { } try { BadValue( const_test_case.at( 0 ) ); - } catch ( const std::range_error & ) { + } catch ( const std::out_of_range & ) { } }