Movatterモバイル変換


[0]ホーム

URL:



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

640. 27.6.2.5.2 does not handle(unsigned) long long

Section: 31.7.6.3.2[ostream.inserters.arithmetic]Status:CD1Submitter: Daniel KrüglerOpened: 2007-02-17Last modified: 2016-01-28

Priority:Not Prioritized

View all otherissues in [ostream.inserters.arithmetic].

View all issues withCD1 status.

Discussion:

The arithmetic inserters are described in 31.7.6.3.2[ostream.inserters.arithmetic].Although the section starts with a listing of the inserters includingthe new ones:

operator<<(long long val );operator<<(unsigned long long val );

the text in paragraph 1, which describes the corresponding effectsof the inserters, depending on the actual type of val, does nothandle the typeslong long andunsigned long long.

[Alisdair: In addition to the (unsigned) long long problem, that whole paragraphmisses any reference to extended integral types supplied by theimplementation - one of the additions by core a couple of working papersback.]

Proposed resolution:

In 31.7.6.3.2[ostream.inserters.arithmetic]/1 change the third sentence

When val is of typebool,long,unsignedlong,long long, unsigned long long,double,long double, orconst void*, the formatting conversionoccurs as if it performed the following code fragment:


[8]ページ先頭

©2009-2026 Movatter.jp