diff -u -r random/inversive_congruential.hpp /home/matthewbg/random/inversive_congruential.hpp --- random/inversive_congruential.hpp 2010-07-08 08:43:09.000000000 -0700 +++ /home/matthewbg/random/inversive_congruential.hpp 2011-04-27 15:41:39.741859000 -0700 @@ -96,7 +96,8 @@ template void seed(It& first, It last) { if(first == last) - throw std::invalid_argument("inversive_congruential::seed"); + boost::throw_exception(std::invalid_argument( + "inversive_congruential::seed")); value = *first++; } IntType operator()() diff -u -r random/lagged_fibonacci.hpp /home/matthewbg/random/lagged_fibonacci.hpp --- random/lagged_fibonacci.hpp 2010-07-08 08:43:09.000000000 -0700 +++ /home/matthewbg/random/lagged_fibonacci.hpp 2011-04-27 15:41:39.744860000 -0700 @@ -158,7 +158,7 @@ x[j] = *first & wordmask; i = long_lag; if(first == last && j < long_lag) - throw std::invalid_argument("lagged_fibonacci::seed"); + boost::throw_exception(std::invalid_argument("lagged_fibonacci::seed")); } /** @@ -411,7 +411,8 @@ } i = long_lag; if(first == last && j < long_lag) - throw std::invalid_argument("lagged_fibonacci_01::seed"); + boost::throw_exception(std::invalid_argument( + "lagged_fibonacci_01::seed")); } result_type min BOOST_PREVENT_MACRO_SUBSTITUTION () const { return result_type(0); } diff -u -r random/linear_congruential.hpp /home/matthewbg/random/linear_congruential.hpp --- random/linear_congruential.hpp 2010-07-08 08:43:09.000000000 -0700 +++ /home/matthewbg/random/linear_congruential.hpp 2011-04-27 15:41:39.749854000 -0700 @@ -139,7 +139,8 @@ void seed(It& first, It last) { if(first == last) - throw std::invalid_argument("linear_congruential::seed"); + boost::throw_exception(std::invalid_argument( + "linear_congruential::seed")); seed(*first++); } diff -u -r random/linear_feedback_shift.hpp /home/matthewbg/random/linear_feedback_shift.hpp --- random/linear_feedback_shift.hpp 2010-07-08 08:43:09.000000000 -0700 +++ /home/matthewbg/random/linear_feedback_shift.hpp 2011-04-27 15:41:39.751857000 -0700 @@ -95,7 +95,8 @@ template void seed(It& first, It last) { if(first == last) - throw std::invalid_argument("linear_feedback_shift::seed"); + boost::throw_exception(std::invalid_argument( + "linear_feedback_shift::seed")); value = *first++; assert(value >= (1 << (w-k))); } diff -u -r random/mersenne_twister.hpp /home/matthewbg/random/mersenne_twister.hpp --- random/mersenne_twister.hpp 2010-07-08 08:43:09.000000000 -0700 +++ /home/matthewbg/random/mersenne_twister.hpp 2011-04-27 15:41:39.753861000 -0700 @@ -153,7 +153,7 @@ x[j] = *first; i = n; if(first == last && j < n) - throw std::invalid_argument("mersenne_twister::seed"); + boost::throw_exception(std::invalid_argument("mersenne_twister::seed")); } result_type min BOOST_PREVENT_MACRO_SUBSTITUTION () const { return 0; } diff -u -r random/subtract_with_carry.hpp /home/matthewbg/random/subtract_with_carry.hpp --- random/subtract_with_carry.hpp 2010-07-08 08:43:09.000000000 -0700 +++ /home/matthewbg/random/subtract_with_carry.hpp 2011-04-27 15:41:39.756847000 -0700 @@ -130,7 +130,8 @@ for(j = 0; j < long_lag && first != last; ++j, ++first) x[j] = *first % modulus; if(first == last && j < long_lag) - throw std::invalid_argument("subtract_with_carry::seed"); + boost::throw_exception(std::invalid_argument( + "subtract_with_carry::seed")); carry = (x[long_lag-1] == 0); k = 0; } @@ -330,7 +331,8 @@ } } if(first == last && j < long_lag) - throw std::invalid_argument("subtract_with_carry_01::seed"); + boost::throw_exception(std::invalid_argument( + "subtract_with_carry_01::seed")); carry = (x[long_lag-1] ? 0 : 1 / _modulus); k = 0; }