Boost logo

Boost :

From: Davlet Panech (dp1978x_lists_at_[hidden])
Date: 2005-12-05 12:33:36


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())
       {


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk