Test for out_of_range rather than range_error. See 21.1.1 paragraph 13.

[SVN r36303]
This commit is contained in:
Beman Dawes
2006-12-08 16:53:49 +00:00
parent b06f12b0b7
commit 526953fc5e

View File

@ -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 & ) {
}
}