This page is a snapshot from the LWG issues list, see the Library Active Issues List for more information and the meaning of C++20 status.
3128.strstream::rdbuf
needs a const_cast
Section: 99 [depr.strstream.oper] Status: C++20 Submitter: Tim Song Opened: 2018-06-30 Last modified: 2021-02-25
Priority: 0
View all issues with C++20 status.
Discussion:
strstream::rdbuf
has the same issue with a missing const_cast
on &sb
.
istrstream::rdbuf
and ostrstream::rdbuf
got this right, but each with a different style (see issue 252(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 to N4750.
Change 99 [depr.strstream.oper] p1 as indicated:
strstreambuf* rdbuf() const;-1- Returns:
const_cast<strstreambuf*>(&sb )
.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4