[v3] fix solaris build issue

Benjamin Kosnik bkoz@redhat.com
Mon Nov 19 15:32:00 GMT 2001


2001-11-29  Benjamin Kosnik  <bkoz@redhat.com>

	* include/bits/locale_facets.tcc (num_get::do_get(long double)):
	Fix __traits_type typo.

Index: include/bits/locale_facets.tcc
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/include/bits/locale_facets.tcc,v
retrieving revision 1.37
diff -c -p -r1.37 locale_facets.tcc
*** locale_facets.tcc	2001/11/29 00:27:53	1.37
--- locale_facets.tcc	2001/11/29 20:10:27
*************** namespace std
*** 647,657 ****
          __conv = "%Lf";
  
        // Stage 3: store results.
!       typedef typename __traits_type::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())
          __v = __ld;
  #endif
        else
--- 647,657 ----
          __conv = "%Lf";
  
        // Stage 3: store results.
!       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) != char_traits<_CharT>::eof())
          __v = __ld;
  #endif
        else



More information about the Gcc-patches mailing list