From 526953fc5e1b46e2f6dd2b394251bf20cc2b7ab6 Mon Sep 17 00:00:00 2001 From: Beman Dawes Date: Fri, 8 Dec 2006 16:53:49 +0000 Subject: [PATCH] Test for out_of_range rather than range_error. See 21.1.1 paragraph 13. [SVN r36303] --- array0.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 & ) { } }