Opened 13 years ago
Closed 13 years ago
#3839 closed Bugs (fixed)
[iostreams]write.hpp:write_device_impl<ostream_tag> tries access non-member f
| Reported by: | Owned by: | Daniel James | |
|---|---|---|---|
| Milestone: | Boost 1.43.0 | Component: | iostreams |
| Version: | Boost 1.41.0 | Severity: | Problem |
| Keywords: | Cc: |
Description
In the boost/iostreams/write.hpp file, in template specialization:
struct write_device_impl<ostream_tag>
the line:
return !traits_type::eq_int_type( t.rdbuf()->s.sputc(),
should be changed to:
return !traits_type::eq_int_type( t.rdbuf()->sputc(c),
because a streambuf has no s member and the proposed changed reflects what's done elsewhere in the same file.
Attachments (3)
Change History (10)
comment:1 by , 13 years ago
comment:2 by , 13 years ago
comment:3 by , 13 years ago
I've added a test to newline_tests, but it would be better if we had some more direct tests for write.hpp.
comment:4 by , 13 years ago
| Component: | None → iostreams |
|---|---|
| Owner: | set to |
comment:5 by , 13 years ago
| Owner: | changed from to |
|---|---|
| Status: | new → assigned |
comment:6 by , 13 years ago
| Milestone: | Boost 1.42.0 → Boost 1.43.0 |
|---|
comment:7 by , 13 years ago
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
(In [60666]) Merge iostreams.
Note:
See TracTickets
for help on using tickets.

It disturbs me that the tests don't catch this. Do you have a small test case that fails because of this?