----- Original Message -----
From: "Beman Dawes" <[EMAIL PROTECTED]>
To: "Boost mailing list" <[EMAIL PROTECTED]>
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

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

Reply via email to