* include/debug/formatter.h: Use _Tp as template argument.
* src/debug.cc: Same, instantiate std::size_t.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@73792
138bc75d-0d04-0410-961f-
82ee72b054a4
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
* include/debug/formatter.h (_Error_formatter::_M_format_word): New.
* src/debug.cc (__gnu_debug): Format.
_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;
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);
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