Skip to content

Commit 9085097

Browse files
jensmaurerzygoloid
authored andcommitted
Use body font, not \tcode, for '#1' code line references in running text. (#1383)
Fixes #1375.
1 parent 04fa63d commit 9085097

File tree

3 files changed

+14
-20
lines changed

3 files changed

+14
-20
lines changed

source/basic.tex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -986,7 +986,7 @@
986986
\end{codeblock}
987987

988988
The declarative regions of \tcode{T}, \tcode{U} and \tcode{V} are the
989-
\grammarterm{template-declaration}{s} on lines \tcode{\#1}, \tcode{\#2} and \tcode{\#3},
989+
\grammarterm{template-declaration}{s} on lines \#1, \#2, and \#3,
990990
respectively. But the names \tcode{A}, \tcode{f}, \tcode{g} and \tcode{C} all belong to
991991
the same declarative region --- namely, the \grammarterm{namespace-body} of \tcode{N}.
992992
(\tcode{g} is still considered to belong to this declarative region in spite of its
@@ -2297,10 +2297,10 @@
22972297

22982298
There are three objects named \tcode{i} in this program. The object with
22992299
internal linkage introduced by the declaration in global scope (line
2300-
\tcode{\#1} ), the object with automatic storage duration and no linkage
2301-
introduced by the declaration on line \tcode{\#2}, and the object with
2300+
\#1), the object with automatic storage duration and no linkage
2301+
introduced by the declaration on line \#2, and the object with
23022302
static storage duration and external linkage introduced by the
2303-
declaration on line \tcode{\#3}. \end{example}
2303+
declaration on line \#3. \end{example}
23042304

23052305
\pnum
23062306
When a block scope declaration of an entity with linkage is not found to

source/conversions.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,9 +296,9 @@
296296

297297
\begin{note}
298298
If a program could assign a pointer of type \tcode{T**} to a pointer of
299-
type \tcode{const} \tcode{T**} (that is, if line \tcode{\#1} below were
299+
type \tcode{const} \tcode{T**} (that is, if line \#1 below were
300300
allowed), a program could inadvertently modify a \tcode{const} object
301-
(as it is done on line \tcode{\#2}). For example,
301+
(as it is done on line \#2). For example,
302302

303303
\begin{codeblock}
304304
int main() {

source/templates.tex

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2458,24 +2458,18 @@
24582458

24592459
According to the ordering rules for function templates,
24602460
the function template
2461-
\tcode{B}
2461+
\placeholder{B}
24622462
is more specialized than the function template
2463-
\tcode{A}
2463+
\placeholder{A}
24642464
and
24652465
the function template
2466-
\tcode{D}
2466+
\placeholder{D}
24672467
is more specialized than the function template
2468-
\tcode{C}.
2469-
Therefore,
2470-
the partial specialization
2471-
\tcode{\#2}
2472-
is more specialized than the partial specialization
2473-
\tcode{\#1}
2474-
and
2475-
the partial specialization
2476-
\tcode{\#4}
2477-
is more specialized than the partial specialization
2478-
\tcode{\#3}.
2468+
\placeholder{C}.
2469+
Therefore, the partial specialization \#2
2470+
is more specialized than the partial specialization \#1
2471+
and the partial specialization \#4
2472+
is more specialized than the partial specialization \#3.
24792473
\end{example}
24802474

24812475
\rSec3[temp.class.spec.mfunc]{Members of class template specializations}

0 commit comments

Comments
 (0)