[v3] libstdc++/5280

Andreas Tobler toa@pop.agri.ch
Wed Jan 23 10:09:00 GMT 2002



Benjamin Kosnik wrote:
> 
> > /Volumes/xufs/gccsrc/objdir/powerpc-apple-darwin5.2/libstdc++-v3/include/bits/locale_facets.tcc:1895: parse
> >    error before numeric constant
> > /Volumes/xufs/gccsrc/objdir/powerpc-apple-darwin5.2/libstdc++-v3/include/bits/locale_facets.tcc:1901: parse
> >    error before numeric constant
> 
> Don't know about this one.

I played a bit and now the error has gone.

I changed the template name from _T to _Ti and then the compiler was
happy. Is this correct? What am I struggling about here?

Thanks,
Andreas

----
- locale_facets.tcc.orig      Wed Jan 23 18:58:28 2002
+++ locale_facets.tcc   Wed Jan 23 19:00:22 2002
@@ -1889,18 +1889,18 @@
       return static_cast<long>(__val);
     }

-  // Convert string to numeric value of type T and store results.
+  // Convert string to numeric value of type Ti and store results.
   // NB: This is specialized for all required types, there is no
   // generic definition.
-  template <typename _T>
+  template <typename _Ti>
                   const __c_locale& __cloc, int __base = 10);

-  // Convert numeric value of type T to string and return length of string.
-  template <typename _T>
+  // Convert numeric value of type Ti to string and return length of string.
+  template <typename _Ti>
     int
-    __convert_from_v(char* __out, const char* __fmt, _T __v,
+    __convert_from_v(char* __out, const char* __fmt, _Ti __v,
                     const __c_locale&, int __prec = -1)
     {
       int __ret;



More information about the Libstdc++ mailing list