From: Benjamin Kosnik Date: Wed, 23 Jan 2002 03:50:49 +0000 (+0000) Subject: c_locale_generic.cc: Fix. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9b6e0e57a1acad4ecef432950815c3b4a793f700;p=gcc.git c_locale_generic.cc: Fix. 2002-01-22 Benjamin Kosnik * config/locale/c_locale_generic.cc: Fix. From-SVN: r49125 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 4776d8c4f80..5e011aa15e1 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,7 @@ +2002-01-22 Benjamin Kosnik + + * config/locale/c_locale_generic.cc: Fix. + 2002-01-22 Benjamin Kosnik * docs/html/22_locale/messages.html: Remove angle brackets. diff --git a/libstdc++-v3/config/locale/c_locale_generic.cc b/libstdc++-v3/config/locale/c_locale_generic.cc index 7133cd33edb..6644916b8c0 100644 --- a/libstdc++-v3/config/locale/c_locale_generic.cc +++ b/libstdc++-v3/config/locale/c_locale_generic.cc @@ -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::int_type int_type; long double __ld; int __p = sscanf(__s, "%Lf", &__ld); - if (__p && static_cast(__p) != char_traits<_CharT>::eof()) + if (__p && static_cast(__p) != char_traits::eof()) __v = __ld; #endif else diff --git a/libstdc++-v3/include/std/std_ostream.h b/libstdc++-v3/include/std/std_ostream.h index e3ec3260ec0..3bb5e042e5a 100644 --- a/libstdc++-v3/include/std/std_ostream.h +++ b/libstdc++-v3/include/std/std_ostream.h @@ -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;