Opened 10 years ago

#7179 new Patches

boost:::iostream::inverse doesn't work with char_type other then char

Reported by: mexal@… Owned by: Jonathan Turkanis
Milestone: To Be Determined Component: iostreams
Version: Boost 1.51.0 Severity: Cosmetic
Keywords: inverse, char, char_type Cc:

Description

See file \boost\iostreams\invert.hpp

This lines

std::streamsize read(Source& src, char* s, std::streamsize n)
...
std::streamsize write(Sink& dest, const char* s, std::streamsize n)

should be changed with:

std::streamsize read(Source& src, char_type* s, std::streamsize n)
...
std::streamsize write(Sink& dest, const char_type* s, std::streamsize n)

for appropriate handling of unsigned char, for example.

Change History (0)

Note: See TracTickets for help on using tickets.