Update of /cvsroot/boost/boost/boost
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv537
Modified Files:
array.hpp
Log Message:
Throw out_of_range rather than range_error. See 21.1.1 paragraph 13.
Index: array.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/array.hpp,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -d -r1.28 -r1.29
--- array.hpp 8 Aug 2006 18:49:30 -0000 1.28
+++ array.hpp 8 Dec 2006 16:54:30 -0000 1.29
@@ -157,7 +157,7 @@
// check range (may be private because it is static)
static void rangecheck (size_type i) {
if (i >= size()) {
- throw std::range_error("array<>: index out of range");
+ throw std::out_of_range("array<>: index out of range");
}
}
@@ -271,7 +271,7 @@
// check range (may be private because it is static)
static reference failed_rangecheck () {
- std::range_error e("attempt to access element of an empty
array");
+ std::out_of_range e("attempt to access element of an empty
array");
boost::throw_exception(e);
//
// We need to return something here to keep
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs