This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: basic_streambuf / locale::ctype problems
- From: Gabriel Dos Reis <gdr at codesourcery dot com>
- To: jack_reeves at bleading-edge dot com
- Cc: libstdc++ at gcc dot gnu dot org
- Date: 29 Jun 2002 20:39:34 +0200
- Subject: Re: basic_streambuf / locale::ctype problems
- Organization: CodeSourcery, LLC
- References: <F151bgIK78ULGKv96el000018ff@hotmail.com>
"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