2002-01-22 Benjamin Kosnik <bkoz@redhat.com>
authorbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 23 Jan 2002 03:50:49 +0000 (03:50 +0000)
committerbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 23 Jan 2002 03:50:49 +0000 (03:50 +0000)
* config/locale/c_locale_generic.cc: Fix.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@49125 138bc75d-0d04-0410-961f-82ee72b054a4

libstdc++-v3/ChangeLog
libstdc++-v3/config/locale/c_locale_generic.cc
libstdc++-v3/include/std/std_ostream.h

index 4776d8c..5e011aa 100644 (file)
@@ -1,5 +1,9 @@
 2002-01-22  Benjamin Kosnik  <bkoz@redhat.com>
 
+       * config/locale/c_locale_generic.cc: Fix.
+
+2002-01-22  Benjamin Kosnik  <bkoz@redhat.com>
+
        * docs/html/22_locale/messages.html: Remove angle brackets.
        * docs/html/17_intro/TODO: Add.
        
index 7133cd3..6644916 100644 (file)
@@ -168,10 +168,10 @@ namespace std
           if (__sanity != __s && *__sanity == '\0' && errno == 0)
            __v = __ld;
 #else
-         typedef typename char_traits<_CharT>::int_type int_type;
+         typedef typename char_traits<char>::int_type int_type;
          long double __ld;
          int __p = sscanf(__s, "%Lf", &__ld);
-         if (__p && static_cast<int_type>(__p) != char_traits<_CharT>::eof())
+         if (__p && static_cast<int_type>(__p) != char_traits<char>::eof())
            __v = __ld;
 #endif
          else
index e3ec326..3bb5e04 100644 (file)
@@ -1,6 +1,7 @@
 // Output streams -*- C++ -*-
 
-// Copyright (C) 1997, 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
+// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002
+// Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
@@ -50,7 +51,6 @@ namespace std
     class basic_ostream : virtual public basic_ios<_CharT, _Traits>
     {
     public:
-
       // Types (inherited from basic_ios (27.4.4)):
       typedef _CharT                                   char_type;
       typedef typename _Traits::int_type               int_type;