Angus Leeming <[EMAIL PROTECTED]> writes:
| Lars, here's one for you since I see that you wrote the code and it means
| nothing to me!
|
| Compiling support/DebugStream.C I get
|
| cxx: Info: DebugStream.C, line 94: #1136-D conversion to integral type of
| smaller size could lose data
| sb2->sputc(c);
| ---------------------------^
| cxx: Info: DebugStream.C, line 95: #1136-D conversion to integral type of
| smaller size could lose data
| return sb1->sputc(c);
| ----------------------------------^
| cxx: Info: DebugStream.C, line 141: #1136-D conversion to integral
| type of smaller size could lose data
| return sb->sputc(c);
| ---------------------------------^
|
| because "c" is of type int_type and sputc expects an argument of type
| char_type.
|
| Shall I
| 1 do nothing;
| 2 sputc(char(c));
| 3 sputc(traits::to_char_type(c));
Do nothing...
it should probably be enhanced a bit...
virtual int_type overflow(int_type c = traits_type::eof()) {
if (c == traits_type::eof())
return traits_type::not_eof(c);
sb2->sputc(traits_type::to_char_type(c));
return sb1->sputc(traits_type::to_char_type(c));
}
something.