This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: basic_streambuf / locale::ctype problems


"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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]