Compare commits

..

1 Commits

Author SHA1 Message Date
81402e1287 This commit was manufactured by cvs2svn to create tag
'Version_1_34_1_RC3'.

[SVN r38225]
2007-07-16 13:13:26 +00:00
2 changed files with 4 additions and 4 deletions

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::out_of_range & ) {
} catch ( const std::range_error & ) {
}
try {
BadValue( const_test_case.at( 0 ) );
} catch ( const std::out_of_range & ) {
} catch ( const std::range_error & ) {
}
}

View File

@ -157,7 +157,7 @@ namespace boost {
// check range (may be private because it is static)
static void rangecheck (size_type i) {
if (i >= size()) {
throw std::out_of_range("array<>: index out of range");
throw std::range_error("array<>: index out of range");
}
}
@ -271,7 +271,7 @@ namespace boost {
// check range (may be private because it is static)
static reference failed_rangecheck () {
std::out_of_range e("attempt to access element of an empty array");
std::range_error e("attempt to access element of an empty array");
boost::throw_exception(e);
//
// We need to return something here to keep