diff -r 510d5bd079ad boost/date_time/constrained_value.hpp
a
|
b
|
|
10 | 10 | */ |
11 | 11 | |
12 | 12 | #include <boost/config.hpp> |
| 13 | #include <boost/throw_exception.hpp> |
13 | 14 | |
14 | 15 | namespace boost { |
15 | 16 | |
… |
… |
|
84 | 85 | static rep_type max BOOST_PREVENT_MACRO_SUBSTITUTION () { return max_value;}; |
85 | 86 | static void on_error(rep_type, rep_type, violation_enum) |
86 | 87 | { |
87 | | throw exception_type(); |
| 88 | boost::throw_exception(exception_type()); |
88 | 89 | } |
89 | 90 | }; |
90 | 91 | |
diff -r 510d5bd079ad boost/date_time/gregorian/conversion.hpp
a
|
b
|
|
23 | 23 | # include "boost/date_time/gregorian/gregorian_io.hpp" |
24 | 24 | #endif // USE_DATE_TIME_PRE_1_33_FACET_IO |
25 | 25 | |
| 26 | #include "boost/throw_exception.hpp" |
| 27 | |
26 | 28 | namespace boost { |
27 | 29 | |
28 | 30 | namespace gregorian { |
… |
… |
|
35 | 37 | if(d.is_pos_infinity() || d.is_neg_infinity() || d.is_not_a_date()){ |
36 | 38 | #if defined(USE_DATE_TIME_PRE_1_33_FACET_IO) |
37 | 39 | std::string s("tm unable to handle date value of " + to_simple_string(d)); |
38 | | throw std::out_of_range(s); |
| 40 | boost::throw_exception(std::out_of_range(s)); |
39 | 41 | #else |
40 | 42 | std::stringstream ss; |
41 | 43 | ss << "tm unable to handle date value of " << d; |
42 | | throw std::out_of_range(ss.str()); |
| 44 | boost::throw_exception(std::out_of_range(ss.str())); |
43 | 45 | #endif // USE_DATE_TIME_PRE_1_33_FACET_IO |
44 | 46 | } |
45 | 47 | std::tm datetm; |
diff -r 510d5bd079ad boost/date_time/gregorian/greg_date.hpp
a
|
b
|
|
13 | 13 | #include "boost/date_time/special_defs.hpp" |
14 | 14 | #include "boost/date_time/gregorian/greg_calendar.hpp" |
15 | 15 | #include "boost/date_time/gregorian/greg_duration.hpp" |
| 16 | |
| 17 | #include "boost/throw_exception.hpp" |
16 | 18 | |
17 | 19 | namespace boost { |
18 | 20 | namespace gregorian { |
… |
… |
|
55 | 57 | : date_time::date<date, gregorian_calendar, date_duration>(y, m, d) |
56 | 58 | { |
57 | 59 | if (gregorian_calendar::end_of_month_day(y, m) < d) { |
58 | | throw bad_day_of_month(std::string("Day of month is not valid for year")); |
| 60 | boost::throw_exception(bad_day_of_month(std::string("Day of month is not valid for year"))); |
59 | 61 | } |
60 | 62 | } |
61 | 63 | //! Constructor from a ymd_type structure |