Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2020-10-02 10:55:04

Andrzej Krzemienski wrote:
> > My only complaint is that unsigned char and signed char (and thus
> > uint8_t and int8_t) are streamed as their char values, and thus as their
> > unadorned ASCII characters. Since they can be non-printable values, I
> > consider this behavior undesirable.
> But should this complaint target PFR or C++ in general?

Iostreams in general. Outputting `unsigned char*` as a null-terminated
string is especially broken. I'm sure this made sense to someone in 1995.

Boost list run by bdawes at, gregod at, cpdaniel at, john at