mirror of
https://github.com/boostorg/array.git
synced 2025-07-17 22:52:08 +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
|
// Confirm at() throws the std lib defined exception
|
||||||
try {
|
try {
|
||||||
BadValue( test_case.at( 0 ) );
|
BadValue( test_case.at( 0 ) );
|
||||||
} catch ( const std::range_error & ) {
|
} catch ( const std::out_of_range & ) {
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
BadValue( const_test_case.at( 0 ) );
|
BadValue( const_test_case.at( 0 ) );
|
||||||
} catch ( const std::range_error & ) {
|
} catch ( const std::out_of_range & ) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user