basic_streambuf / locale::ctype problems
Gabriel Dos Reis
gdr@codesourcery.com
Sat Jun 29 11:40:00 GMT 2002
"Jack Reeves" <jackw_reeves@hotmail.com> writes:
[...]
| The Standard does not require any operations be supported for this int_type
| other than what are provided by char_traits<> itself. This will not compile
| with the current library  it uses basic_streambuf<int>::int_type, which is
| a typedef for char_traits<int>::int_type, incorrectly in several places.
I'm not sure I understand this. In current source, I find this:
template<typename _CharT, typename _Traits>
class basic_streambuf
{
public:
// Types:
typedef _CharT char_type;
typedef _Traits traits_type;
typedef typename traits_type::int_type int_type;
typedef typename traits_type::pos_type pos_type;
typedef typename traits_type::off_type off_type;
Where is the problem?
-- Gaby
More information about the Libstdc++
mailing list