Boost logo

Boost :

From: Giovanni Bajo (giovannibajo_at_[hidden])
Date: 2003-03-16 22:40:50


----- Original Message -----
From: "Beman Dawes" <bdawes_at_[hidden]>
To: "Boost mailing list" <boost_at_[hidden]>
Sent: Monday, March 17, 2003 2:51 AM
Subject: [boost] 1.30.0 Outstanding patches and fixes - Sunday night update

> Here is the current list. The second and third items look to me like
> showstoppers.

Could this patch be accepted in time for 1.30.0? I asked yesterday for a fix
to array.hpp that allows it to be used when exceptions are disabled, and
this looks legit to me.

---------------- array.hpp.diff ----------------------
*** array_cvs.hpp Mon Mar 17 04:31:25 2003
--- array.hpp Mon Mar 17 04:33:27 2003
***************
*** 31,36 ****
--- 31,37 ----

  // FIXES for broken compilers
  #include <boost/config.hpp>
+ #include <boost/throw_exception.hpp>

  namespace boost {

***************
*** 126,132 ****
  #endif
          // check range (may be private because it is static)
          static void rangecheck (size_type i) {
! if (i >= size()) { throw std::range_error("array"); }
          }

      };
--- 127,133 ----
  #endif
          // check range (may be private because it is static)
          static void rangecheck (size_type i) {
! if (i >= size()) {
boost::throw_exception(std::range_error("array")); }
          }

      };

---------------- array.hpp.diff ----------------------

Thanks
Giovanni Bajo


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk