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

2024-12-19


834. What is an “ordinary string literal”?

Section: 5.13.5  [lex.string]     Status: CD2     Submitter: Mike Miller     Date: 6 March, 2009

[Voted into WP at October, 2009 meeting.]

According to 5.13.5 [lex.string] paragraph 4,

A string literal that does not begin with u8, u, U, or L is an ordinary string literal, and is initialized with the given characters.

This is not as clear as it could be that a string like u8R"[xxx]" is not an ordinary string literal, because the string's prefix is not one of those listed (i.e., it's not obvious that possible substrings of the prefix are in view). This would be clearer if it simply said,

A string literal with no prefix or a prefix of R is an ordinary string literal.

Proposed resolution (September, 2009):

This issue is resolved by the resolution of issue 790.