F
Fraser Ross
template <typename char_tp= char, typename traits_tp=
std::char_traits<char_tp> >
class MyStreamBuf : public std::basic_streambuf<char_tp, traits_tp>,
private noncopyable {
I defined my streambuf class as above. std::basic_streambuf has a
public typedef:
typedef typename traits_type::int_type int_type;
I have to redeclare the typedef in MyStreamBuf to use int_type without
any qualification. This seems strange to me. Is it a compiler bug?
Fraser.
std::char_traits<char_tp> >
class MyStreamBuf : public std::basic_streambuf<char_tp, traits_tp>,
private noncopyable {
I defined my streambuf class as above. std::basic_streambuf has a
public typedef:
typedef typename traits_type::int_type int_type;
I have to redeclare the typedef in MyStreamBuf to use int_type without
any qualification. This seems strange to me. Is it a compiler bug?
Fraser.