mirror of
https://github.com/boostorg/array.git
synced 2026-01-21 04:42:09 +00: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