Closed
Description
This issue was originally raised in the core reflector as "[c++std-core-25257] The definition of Literal is missing" on 12 May 2014 03:18, Saeed Amrollahi Boyouki. An e-mail thread ensued, and it was decided that some of this could be resolved by fixing references to literal, when used as a grammar term, editorially, and to open a core issue for what remains. Since there are 537 uses of literal in the spec, this is going to take a while... See branch "literal-fixes" for this ongoing effort.
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
burblebee commentedon Nov 6, 2014
Richard had the idea that we resolve this problem by defining "literal" to refer to the grammar term literal, when it applies.
[lex.literal] Avoid references to plain 'literal'
jensmaurer commentedon Dec 20, 2016
I've had a look. It seems most mentions of "literal" in [lex] actually refer to a specific (and defined) kind of literal, e.g. "character literal" or "integer literal". There are a few cases where "literal" is used instead of the full phrase as a means of abbreviation. I'm preparing a patch that expands these.
[expr.prim.literal] does use \grammarterm {literal}, which is good.
[lex.literal] Avoid references to plain 'literal' (#1277)