id summary reporter owner description type status milestone component version severity resolution keywords cc 2698 date-time library and checked iterators gast128@… az_sw_dude "Dear all, posted on the users group, I think the DateTime library contains a bug. When used with checked iterators, VStudio2008 stops the programming, because an illegal dereference. the date_facet::do_put_tm contains the follwing line: return std::use_facet >(a_ios.getloc()).put(next, a_ios, fill_char, &tm_value, &*a_format.begin(), &*a_format.begin()+a_format.size()); if the a_format is empty, dereferencing is illegal according too VStudio2008. Sample program: #include #include #include int main() { boost::gregorian::date date(2009, 1, 1); boost::posix_time::time_duration td(0, 0, 0, 0); boost::posix_time::ptime boost_time(date, td); std::stringstream sstr; boost::posix_time::time_facet* pFacet = new boost::posix_time::time_facet(""""); sstr.imbue(std::locale(std::locale::classic(), pFacet)); sstr << boost_time; return 0; } " Bugs closed Boost 1.38.0 date_time Boost 1.37.0 Problem fixed DateTime