This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Non-standard public typedefs in iostream templates
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: "libstdc++" <libstdc++ at gcc dot gnu dot org>
- Date: Wed, 20 Feb 2013 21:49:00 +0000
- Subject: Non-standard public typedefs in iostream templates
Why are typedefs like these public?
// Non-standard Types:
typedef basic_streambuf<_CharT, _Traits> __streambuf_type;
typedef basic_ios<_CharT, _Traits> __ios_type;
typedef basic_ostream<_CharT, _Traits> __ostream_type;
typedef num_put<_CharT, ostreambuf_iterator<_CharT, _Traits> >
__num_put_type;
typedef ctype<_CharT> __ctype_type;
These are from <ostream> but similar names appear in other I/O headers.
Making them private doesn't seem to cause any problems.