mirror of
https://github.com/boostorg/array.git
synced 2025-07-17 14:42:09 +02:00
Test for out_of_range rather than range_error. See 21.1.1 paragraph 13.
[SVN r36303]
This commit is contained in:
@ -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 & ) {
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user