OSDN Git Service

2001-11-29 Benjamin Kosnik <bkoz@redhat.com>
authorbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 29 Nov 2001 20:14:38 +0000 (20:14 +0000)
committerbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 29 Nov 2001 20:14:38 +0000 (20:14 +0000)
* include/bits/locale_facets.tcc (num_get::do_get(long double)):
Fix __traits_type typo.

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

libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/locale_facets.tcc

index 5143456..083f412 100644 (file)
@@ -1,3 +1,8 @@
+2001-11-29  Benjamin Kosnik  <bkoz@redhat.com>
+
+       * include/bits/locale_facets.tcc (num_get::do_get(long double)):
+       Fix __traits_type typo.
+
 2001-11-28  Paolo Carlini  <pcarlini@unitus.it>
 
        libstdc++/3655
index c3f1b03..894fa49 100644 (file)
@@ -647,11 +647,11 @@ namespace std
         __conv = "%Lf";
 
       // Stage 3: store results.
-      typedef typename __traits_type::int_type int_type;
+      typedef typename char_traits<_CharT>::int_type int_type;
       long double __ld;
       int __p = sscanf(__xtrc, __conv, &__ld);
       if (!(__err & ios_base::failbit) && __p 
-         && static_cast<int_type>(__p) != __traits_type::eof())
+         && static_cast<int_type>(__p) != char_traits<_CharT>::eof())
         __v = __ld;
 #endif
       else