[basic.link], [expr.ref] Harmonize font for tuple representing direct base class relationship #8333
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes NB US 1-405 (C++26 CD).
Fixes cplusplus/nbballot#586.
This only changes the spellings in core wording, in [basic.link] and [expr.ref].
@jensmaurer requested in cplusplus/nbballot#586 (comment) that code font should not be used. That seems to be the path of least resistance, although, to be fair, a direct base class relationship is always between two types, and we tend to use code font for types. Using math font also leads to a quirky change in [expr.ref] where
\tcode{T1}
becomes$\mathit{T1}$
.In [meta.reflection], the wording uses
$(D, B)$
consistently everywhere. This spelling also appears once in https://eel.is/c++draft/expr.ref#8.6. I think we should aim to spell both the base class relationship and the data member description tuples entirely in math context, including the parentheses, which is already the most common form.Maybe we could revisit these font choices later, but for now, let's just make it consistent with a fairly small change, and move on.