Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r60417 - trunk/boost
From: marshall_at_[hidden]
Date: 2010-03-10 09:23:50


Author: marshall
Date: 2010-03-10 09:23:49 EST (Wed, 10 Mar 2010)
New Revision: 60417
URL: http://svn.boost.org/trac/boost/changeset/60417

Log:
Changed exception throwing to use boost::throw_exception
Text files modified:
   trunk/boost/array.hpp | 3 ++-
   1 files changed, 2 insertions(+), 1 deletions(-)

Modified: trunk/boost/array.hpp
==============================================================================
--- trunk/boost/array.hpp (original)
+++ trunk/boost/array.hpp 2010-03-10 09:23:49 EST (Wed, 10 Mar 2010)
@@ -168,7 +168,8 @@
         // 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");
+ std::out_of_range e("array<>: index out of range");
+ boost::throw_exception(e);
             }
         }
 


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk