>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
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost