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.

57. Mistake in char_traits

Section: 27.2.4.6[char.traits.specializations.wchar.t]Status:TC1Submitter: Matt AusternOpened: 1998-07-01Last modified: 2016-01-28

Priority:Not Prioritized

View all issues withTC1 status.

Discussion:

21.1.3.2, paragraph 3, says "The types streampos andwstreampos may be different if the implementation supports no shiftencoding in narrow-oriented iostreams but supports one or more shiftencodings in wide-oriented streams".

That's wrong: the two are the same type. The <iosfwd> summaryin 27.2 says that streampos and wstreampos are, respectively, synonymsfor fpos<char_traits<char>::state_type> andfpos<char_traits<wchar_t>::state_type>, and, flipping backto clause 21, we see in 21.1.3.1 and 21.1.3.2 thatchar_traits<char>::state_type andchar_traits<wchar_t>::state_type must both be mbstate_t.

Proposed resolution:

Remove the sentence in 27.2.4.6[char.traits.specializations.wchar.t] paragraph 3 whichbegins "The types streampos and wstreampos may bedifferent..." .


[8]ページ先頭

©2009-2026 Movatter.jp