Movatterモバイル変換


[0]ホーム

URL:



This page is a snapshot from the LWG issues list, see theLibrary Active Issues List for more information and the meaning ofC++20 status.

3128.strstream::rdbuf needs aconst_cast

Section: 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.

Somewhat amusingly,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.

  1. Change 99 [depr.strstream.oper] p1 as indicated:

    strstreambuf* rdbuf() const;

    -1-Returns:const_cast<strstreambuf*>(&sb).


[8]ページ先頭

©2009-2026 Movatter.jp