Boost logo

Boost :

From: Beman Dawes (bdawes_at_[hidden])
Date: 2003-03-17 06:41:16


At 10:40 PM 3/16/2003, Giovanni Bajo wrote:

>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.

The change looks innocuous to me. Would anyone object if I go ahead an
apply it? (I'll test with Win32 compilers and only commit if it causes no
problems.)

--Beman

>---------------- 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


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