This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21 Core Issues List revision 115e. See http://www.open-std.org/jtc1/sc22/wg21/ for the official list.

2024-11-11


1717. Missing specification of type of binary literal

Section: 5.13.2  [lex.icon]     Status: C++14     Submitter: Richard Smith     Date: 2013-07-23

N3690 comment ES 7

[Applied to WP at the February, 2014 meeting.]

Table 6 of 5.13.2 [lex.icon] paragraph 2 covers only decimal, octal, and hexadecimal literals. Binary literals should be treated like the latter two. (It would also be more consistent to refer to these as “literals” instead of “constants.”)

Proposed resolution (September, 2013):

Change the caption and header row of Table 6 in 5.13.2 [lex.icon] paragraph 2 as follows:

Table 6 — Types of integer constants literals

Suffix Decimal constants literal Binary, Octal octal, or hexadecimal constant literal