diff options
Diffstat (limited to 'boost/date_time/local_time')
-rw-r--r-- | boost/date_time/local_time/local_date_time.hpp | 9 | ||||
-rw-r--r-- | boost/date_time/local_time/posix_time_zone.hpp | 7 |
2 files changed, 9 insertions, 7 deletions
diff --git a/boost/date_time/local_time/local_date_time.hpp b/boost/date_time/local_time/local_date_time.hpp index a3762d9243..e88a231b54 100644 --- a/boost/date_time/local_time/local_date_time.hpp +++ b/boost/date_time/local_time/local_date_time.hpp @@ -16,6 +16,7 @@ #include <boost/throw_exception.hpp> #include <boost/date_time/time.hpp> #include <boost/date_time/posix_time/posix_time.hpp> //todo remove? +#include <boost/date_time/compiler_config.hpp> #include <boost/date_time/dst_rules.hpp> #include <boost/date_time/time_zone_base.hpp> #include <boost/date_time/special_defs.hpp> @@ -25,18 +26,18 @@ namespace boost { namespace local_time { //! simple exception for reporting when STD or DST cannot be determined - struct ambiguous_result : public std::logic_error + struct BOOST_SYMBOL_VISIBLE ambiguous_result : public std::logic_error { ambiguous_result (std::string const& msg = std::string()) : std::logic_error(std::string("Daylight Savings Results are ambiguous: " + msg)) {} }; //! simple exception for when time label given cannot exist - struct time_label_invalid : public std::logic_error + struct BOOST_SYMBOL_VISIBLE time_label_invalid : public std::logic_error { time_label_invalid (std::string const& msg = std::string()) : std::logic_error(std::string("Time label given is invalid: " + msg)) {} }; - struct dst_not_valid: public std::logic_error + struct BOOST_SYMBOL_VISIBLE dst_not_valid: public std::logic_error { dst_not_valid(std::string const& msg = std::string()) : std::logic_error(std::string("is_dst flag does not match resulting dst for time label given: " + msg)) {} @@ -61,7 +62,7 @@ namespace local_time { */ template<class utc_time_=posix_time::ptime, class tz_type=date_time::time_zone_base<utc_time_,char> > - class local_date_time_base : public date_time::base_time<utc_time_, + class BOOST_SYMBOL_VISIBLE local_date_time_base : public date_time::base_time<utc_time_, boost::posix_time::posix_time_system> { public: typedef utc_time_ utc_time_type; diff --git a/boost/date_time/local_time/posix_time_zone.hpp b/boost/date_time/local_time/posix_time_zone.hpp index d0ef31d5b8..9c2c04ba41 100644 --- a/boost/date_time/local_time/posix_time_zone.hpp +++ b/boost/date_time/local_time/posix_time_zone.hpp @@ -13,6 +13,7 @@ #include <stdexcept> #include <boost/tokenizer.hpp> #include <boost/throw_exception.hpp> +#include <boost/date_time/compiler_config.hpp> #include <boost/date_time/gregorian/gregorian.hpp> #include <boost/date_time/time_zone_names.hpp> #include <boost/date_time/time_zone_base.hpp> @@ -25,13 +26,13 @@ namespace boost{ namespace local_time{ //! simple exception for UTC and Daylight savings start/end offsets - struct bad_offset : public std::out_of_range + struct BOOST_SYMBOL_VISIBLE bad_offset : public std::out_of_range { bad_offset(std::string const& msg = std::string()) : std::out_of_range(std::string("Offset out of range: " + msg)) {} }; //! simple exception for UTC daylight savings adjustment - struct bad_adjustment : public std::out_of_range + struct BOOST_SYMBOL_VISIBLE bad_adjustment : public std::out_of_range { bad_adjustment(std::string const& msg = std::string()) : std::out_of_range(std::string("Adjustment out of range: " + msg)) {} @@ -67,7 +68,7 @@ namespace local_time{ * http://www.worldtimezone.com/utc/utc+1200.html */ template<class CharT> - class posix_time_zone_base : public date_time::time_zone_base<posix_time::ptime,CharT> { + class BOOST_SYMBOL_VISIBLE posix_time_zone_base : public date_time::time_zone_base<posix_time::ptime,CharT> { public: typedef boost::posix_time::time_duration time_duration_type; typedef date_time::time_zone_names_base<CharT> time_zone_names; |