diff -r 510d5bd079ad boost/date_time/constrained_value.hpp --- a/boost/date_time/constrained_value.hpp Fri Jun 27 15:59:57 2008 -0600 +++ b/boost/date_time/constrained_value.hpp Mon Jun 30 18:20:46 2008 -0600 @@ -10,6 +10,7 @@ */ #include +#include namespace boost { @@ -84,7 +85,7 @@ static rep_type max BOOST_PREVENT_MACRO_SUBSTITUTION () { return max_value;}; static void on_error(rep_type, rep_type, violation_enum) { - throw exception_type(); + boost::throw_exception(exception_type()); } }; diff -r 510d5bd079ad boost/date_time/gregorian/conversion.hpp --- a/boost/date_time/gregorian/conversion.hpp Fri Jun 27 15:59:57 2008 -0600 +++ b/boost/date_time/gregorian/conversion.hpp Mon Jun 30 18:20:46 2008 -0600 @@ -23,6 +23,8 @@ # include "boost/date_time/gregorian/gregorian_io.hpp" #endif // USE_DATE_TIME_PRE_1_33_FACET_IO +#include "boost/throw_exception.hpp" + namespace boost { namespace gregorian { @@ -35,11 +37,11 @@ if(d.is_pos_infinity() || d.is_neg_infinity() || d.is_not_a_date()){ #if defined(USE_DATE_TIME_PRE_1_33_FACET_IO) std::string s("tm unable to handle date value of " + to_simple_string(d)); - throw std::out_of_range(s); + boost::throw_exception(std::out_of_range(s)); #else std::stringstream ss; ss << "tm unable to handle date value of " << d; - throw std::out_of_range(ss.str()); + boost::throw_exception(std::out_of_range(ss.str())); #endif // USE_DATE_TIME_PRE_1_33_FACET_IO } std::tm datetm; diff -r 510d5bd079ad boost/date_time/gregorian/greg_date.hpp --- a/boost/date_time/gregorian/greg_date.hpp Fri Jun 27 15:59:57 2008 -0600 +++ b/boost/date_time/gregorian/greg_date.hpp Mon Jun 30 18:20:46 2008 -0600 @@ -13,6 +13,8 @@ #include "boost/date_time/special_defs.hpp" #include "boost/date_time/gregorian/greg_calendar.hpp" #include "boost/date_time/gregorian/greg_duration.hpp" + +#include "boost/throw_exception.hpp" namespace boost { namespace gregorian { @@ -55,7 +57,7 @@ : date_time::date(y, m, d) { if (gregorian_calendar::end_of_month_day(y, m) < d) { - throw bad_day_of_month(std::string("Day of month is not valid for year")); + boost::throw_exception(bad_day_of_month(std::string("Day of month is not valid for year"))); } } //! Constructor from a ymd_type structure