[date_time] patch for MSVC 6

Hello, I'm getting an ICE in date_formatting.hpp with MSVC 6 Service Pack 6/STLPort 4.6.2. This patch fixes it (by adding a dummy typedef). __________________________________________________________ Find your next car at http://autos.yahoo.ca Index: date_formatting.hpp =================================================================== RCS file: /cvsroot/boost/boost/boost/date_time/date_formatting.hpp,v retrieving revision 1.6 diff -d -u -r1.6 date_formatting.hpp --- date_formatting.hpp 29 Aug 2004 19:31:11 -0000 1.6 +++ date_formatting.hpp 5 Dec 2005 17:24:42 -0000 @@ -27,14 +27,15 @@ template<class month_type, class format_type, class charT=char> class month_formatter { + typedef std::basic_ostream<charT> ostream_type; public: //! Formats a month as as string into an ostream /*! This function demands that month_type provide * functions for converting to short and long strings * if that capability is used. */ - static std::basic_ostream<charT>& format_month(const month_type& month, - std::basic_ostream<charT>& os) + static ostream_type& format_month(const month_type& month, + ostream_type &os) { switch (format_type::month_format()) {

On Mon, 5 Dec 2005 12:33:36 -0500 (EST), Davlet Panech wrote
Hello,
I'm getting an ICE in date_formatting.hpp with MSVC 6 Service Pack 6/STLPort 4.6.2. This patch fixes it (by adding a dummy typedef).
Ok -- committed, although I'll warn you that date-time probably won't support VC6 in 1.34 -- life's too short. And if some of us have our way that will apply to most of boost... Jeff
participants (2)
-
Davlet Panech
-
Jeff Garland