diff --git a/include/boost/date_time/time_facet.hpp b/include/boost/date_time/time_facet.hpp index 8ee9f1c..d8c20df 100644 --- a/include/boost/date_time/time_facet.hpp +++ b/include/boost/date_time/time_facet.hpp @@ -219,7 +219,7 @@ namespace date_time { const time_type& a_time) const { if (a_time.is_special()) { - return do_put_special(a_next, a_ios, a_fill, + return this->do_put_special(a_next, a_ios, a_fill, a_time.date().as_special()); } string_type format(this->m_format); @@ -360,7 +360,7 @@ namespace date_time { } } - return do_put_tm(a_next, a_ios, a_fill, + return this->do_put_tm(a_next, a_ios, a_fill, to_tm(a_time), format); } @@ -371,7 +371,7 @@ namespace date_time { const time_duration_type& a_time_dur) const { if (a_time_dur.is_special()) { - return do_put_special(a_next, a_ios, a_fill, + return this->do_put_special(a_next, a_ios, a_fill, a_time_dur.get_rep().as_special()); } @@ -419,7 +419,7 @@ namespace date_time { } } - return do_put_tm(a_next, a_ios, a_fill, + return this->do_put_tm(a_next, a_ios, a_fill, to_tm(a_time_dur), format); } diff --git a/test/Jamfile b/test/Jamfile index 0ec6327..8defe77 100644 --- a/test/Jamfile +++ b/test/Jamfile @@ -125,7 +125,7 @@ test-suite date_time_gregorian_dll [ run posix_time/teststreams.cpp ../build/boost_date_time : : : $(DATE_TIME_PROPERTIES) USE_DATE_TIME_PRE_1_33_FACET_IO ] ; - local DATE_TIME_PROPERTIES = BOOST_DATE_TIME_POSIX_TIME_STD_CONFIG BOOST_DATE_TIME_STATIC_LINK BOOST_ALL_NO_LIB ; +local DATE_TIME_PROPERTIES = BOOST_DATE_TIME_POSIX_TIME_STD_CONFIG BOOST_DATE_TIME_STATIC_LINK std::locale-support BOOST_ALL_NO_LIB ; test-suite date_time_localtime : @@ -158,7 +158,7 @@ test-suite date_time_gregorian_dll import ../../../libs/serialization/build/serialization ; local DATE_TIME_PROPERTIES = BOOST_DATE_TIME_STATIC_LINK BOOST_ALL_NO_LIB USE_DATE_TIME_PRE_1_33_FACET_IO - toolset::require-boost-spirit-support ; + std::locale-support toolset::require-boost-spirit-support ; test-suite date_time_serialization :