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


1474. User-defined literals and <inttypes.h> format macros

Section: 5.13.9  [lex.ext]     Status: NAD     Submitter: Richard Smith     Date: 2012-03-05

The format macros that are part of <inttypes.h> (incorporated into C++11 as <cinttypes>) are conventionally written with no whitespace separating them from the rest of the format string, e.g.,

  printf("foo = "PRIu32", bar = "PRIi8"\n", foo, bar);
  printf("baz = "PRIu32"\n", baz);

This usage conflicts with user-defined literals.

Rationale (October, 2012):

CWG felt that whether this form of these macros needed to be supported in C++ should be examined by EWG.

Rationale (February, 2014):

EWG determined that no action should be taken on this issue.