Commit 9b6e0e57 by Benjamin Kosnik Committed by Benjamin Kosnik

c_locale_generic.cc: Fix.


2002-01-22  Benjamin Kosnik  <bkoz@redhat.com>

	* config/locale/c_locale_generic.cc: Fix.

From-SVN: r49125
parent 9d967a7e
2002-01-22 Benjamin Kosnik <bkoz@redhat.com> 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/22_locale/messages.html: Remove angle brackets.
* docs/html/17_intro/TODO: Add. * docs/html/17_intro/TODO: Add.
......
...@@ -168,10 +168,10 @@ namespace std ...@@ -168,10 +168,10 @@ namespace std
if (__sanity != __s && *__sanity == '\0' && errno == 0) if (__sanity != __s && *__sanity == '\0' && errno == 0)
__v = __ld; __v = __ld;
#else #else
typedef typename char_traits<_CharT>::int_type int_type; typedef typename char_traits<char>::int_type int_type;
long double __ld; long double __ld;
int __p = sscanf(__s, "%Lf", &__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; __v = __ld;
#endif #endif
else else
......
// Output streams -*- C++ -*- // 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 // 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 // software; you can redistribute it and/or modify it under the
...@@ -50,7 +51,6 @@ namespace std ...@@ -50,7 +51,6 @@ namespace std
class basic_ostream : virtual public basic_ios<_CharT, _Traits> class basic_ostream : virtual public basic_ios<_CharT, _Traits>
{ {
public: public:
// Types (inherited from basic_ios (27.4.4)): // Types (inherited from basic_ios (27.4.4)):
typedef _CharT char_type; typedef _CharT char_type;
typedef typename _Traits::int_type int_type; typedef typename _Traits::int_type int_type;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment