Compare commits

..

9 Commits

Author SHA1 Message Date
51cf550cae This commit was manufactured by cvs2svn to create tag
'Version_1_34_0'.

[SVN r37679]
2007-05-12 21:59:40 +00:00
5a23b06a83 Merged L & C issue fixes from trunk to branch.
[SVN r36225]
2006-12-01 11:34:43 +00:00
e85feee293 Merged copyright and license addition
[SVN r35907]
2006-11-07 19:27:00 +00:00
b6522b3f60 (merge from head)
http://www.josuttis.com/ hasn't the latest version any more


[SVN r34856]
2006-08-08 18:53:30 +00:00
3044ab376c Simplified code.
[SVN r34384]
2006-06-24 11:31:19 +00:00
69188c998f Fix compiler errors resulting from missing return values.
[SVN r34259]
2006-06-09 11:40:07 +00:00
4c5212f5e4 Remove size zero support for old compilers that do not support partial template specialization
[SVN r34162]
2006-06-04 12:10:17 +00:00
276cd991f3 Support for zero length arrays
[SVN r34156]
2006-06-03 13:04:27 +00:00
1f8298fb08 This commit was manufactured by cvs2svn to create branch 'RC_1_34_0'.
[SVN r33417]
2006-03-21 02:26:31 +00:00
9 changed files with 4 additions and 18 deletions

View File

@ -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::out_of_range & ) { } catch ( const std::range_error & ) {
} }
try { try {
BadValue( const_test_case.at( 0 ) ); 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) // check range (may be private because it is static)
static void rangecheck (size_type i) { static void rangecheck (size_type i) {
if (i >= size()) { 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) // check range (may be private because it is static)
static reference failed_rangecheck () { 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); boost::throw_exception(e);
// //
// We need to return something here to keep // We need to return something here to keep

View File

@ -1,14 +0,0 @@
#~ Copyright Rene Rivera 2008
#~ Distributed under the Boost Software License, Version 1.0.
#~ (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
import testing ;
test-suite array :
[ run array0.cpp ]
[ run array1.cpp ]
[ run array2.cpp ]
[ run array3.cpp ]
[ run array4.cpp ]
[ run array5.cpp ]
;