Title
User-defined literals and <inttypes.h> format macros
Status
nad
Section
5.13.9 [lex.ext]
Submitter
Richard Smith

Created on 2012-03-05.00:00:00 last changed 130 months ago

Messages

Date: 2014-02-15.00:00:00

Rationale (February, 2014):

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

Date: 2012-10-15.00:00:00

Rationale (October, 2012):

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

Date: 2022-11-20.07:54:16

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.

History
Date User Action Args
2014-03-03 00:00:00adminsetmessages: + msg4973
2014-03-03 00:00:00adminsetstatus: extension -> nad
2012-11-03 00:00:00adminsetmessages: + msg4186
2012-11-03 00:00:00adminsetstatus: open -> extension
2012-03-05 00:00:00admincreate