[diff.cpp23.io] (original) (raw)

Affected subclause: [istream.unformatted]

Change: Overloaded std​::​basic_istream<char, traits>​::​ignore.

Rationale: Allow char values to be used as delimiters.

Effect on original feature: Calls to istream​::​ignore with a second argument of char type can change behavior.

Calls to istream​::​ignore with a second argument that is neitherint nor char type can become ill-formed.

[Example 1: std::istringstream in("\xF0\x9F\xA4\xA1 Clown Face"); in.ignore(100, '\xA1'); in.ignore(100, -1L); — _end example_]