This page is a snapshot from the LWG issues list, see theLibrary Active Issues List for more information and the meaning ofC++20 status.
strstream::rdbuf needs aconst_castSection: 99 [depr.strstream.oper]Status:C++20Submitter: Tim SongOpened: 2018-06-30Last modified: 2021-02-25
Priority:0
View all issues withC++20 status.
Discussion:
strstream::rdbuf has the same issue with a missingconst_cast on&sb.
istrstream::rdbuf andostrstream::rdbuf got this right,but each with a different style (see issue252(i)).[2018-07-20 Status to Tentatively Ready after five positive votes on the reflector.]
[2018-11, Adopted in San Diego]
Proposed resolution:
This wording is relative toN4750.
Change 99 [depr.strstream.oper] p1 as indicated:
strstreambuf* rdbuf() const;-1-Returns:
const_cast<strstreambuf*>(&sb).