Movatterモバイル変換


[0]ホーム

URL:



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

122. streambuf/wstreambuf description should not say they are specializations

Section: 31.6.3[streambuf]Status:TC1Submitter: Judy WardOpened: 1998-12-15Last modified: 2016-01-28

Priority:Not Prioritized

View all otherissues in [streambuf].

View all issues withTC1 status.

Discussion:

Section 27.5.2 describes the streambuf classes this way:

The class streambuf is a specialization of the template class basic_streambufspecialized for the type char.

The class wstreambuf is a specialization of the template class basic_streambufspecialized for the type wchar_t.

This implies that these classes must be template specializations, not typedefs.

It doesn't seem this was intended, since Section 27.5 has them declared as typedefs.

Proposed resolution:

Remove 31.6.3[streambuf] paragraphs 2 and 3 (the above twosentences).

Rationale:

Thestreambuf synopsis already has a declaration for thetypedefs and that is sufficient.


[8]ページ先頭

©2009-2026 Movatter.jp