formatter.h: Use _Tp as template argument.
authorBenjamin Kosnik <bkoz@redhat.com>
Fri, 21 Nov 2003 05:49:21 +0000 (05:49 +0000)
committerBenjamin Kosnik <bkoz@gcc.gnu.org>
Fri, 21 Nov 2003 05:49:21 +0000 (05:49 +0000)
2003-11-20  Benjamin Kosnik  <bkoz@redhat.com>

* include/debug/formatter.h: Use _Tp as template argument.
* src/debug.cc: Same, instantiate std::size_t.

From-SVN: r73792

libstdc++-v3/ChangeLog
libstdc++-v3/include/debug/formatter.h
libstdc++-v3/src/debug.cc

index 7263ff84719e425f40abe158c3dca077bdfae521..5e600e6fbb366a58f3cd2df4b09c097bf9adb5a4 100644 (file)
@@ -1,3 +1,8 @@
+2003-11-20  Benjamin Kosnik  <bkoz@redhat.com>
+
+       * include/debug/formatter.h: Use _Tp as template argument.
+       * src/debug.cc: Same, instantiate std::size_t.
+       
 2003-11-20  Benjamin Kosnik  <bkoz@redhat.com>
 
        PR libstdc++/13109
index a6b3c770525b4e91e1e04cb1de2e28f8942b3865..1a627a98dda07972c59890898123be4ee5de2131 100644 (file)
@@ -356,9 +356,9 @@ namespace __gnu_debug
       _M_max_length(78), _M_column(1), _M_first_line(true), _M_wordwrap(false)
     { }
 
-    template<typename _T>
+    template<typename _Tp>
       void
-      _M_format_word(char*, int, const char*, _T) const;
+      _M_format_word(char*, int, const char*, _Tp) const;
 
     void 
     _M_print_word(const char* __word) const;
index a00a2508c3eea87b3bf07201fa95d773d19d8979..a78bdec2df3da1cb5b841b20ef97229955b083e8 100644 (file)
@@ -496,11 +496,11 @@ namespace __gnu_debug
     abort();
   }
 
-  template<typename _T>
+  template<typename _Tp>
     void
     _Error_formatter::_M_format_word(char* __buf, 
                                     int __n __attribute__((__unused__)), 
-                                    const char* __fmt, _T __s) const
+                                    const char* __fmt, _Tp __s) const
     {
 #ifdef _GLIBCXX_USE_C99
       std::snprintf(__buf, __n, __fmt, __s);
@@ -651,7 +651,7 @@ namespace __gnu_debug
   template
     void
     _Error_formatter::_M_format_word(char* __buf, int __n, const char* __fmt, 
-                                    unsigned int __s) const;
+                                    std::size_t __s) const;
 
   template
     void