Skip to content

Use body font, not \tcode, for '#1' code line references in running t… #1383

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 5, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions source/basic.tex
Original file line number Diff line number Diff line change
Expand Up @@ -986,7 +986,7 @@
\end{codeblock}

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

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

\pnum
When a block scope declaration of an entity with linkage is not found to
Expand Down
4 changes: 2 additions & 2 deletions source/conversions.tex
Original file line number Diff line number Diff line change
Expand Up @@ -294,9 +294,9 @@

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

\begin{codeblock}
int main() {
Expand Down
22 changes: 8 additions & 14 deletions source/templates.tex
Original file line number Diff line number Diff line change
Expand Up @@ -2458,24 +2458,18 @@

According to the ordering rules for function templates,
the function template
\tcode{B}
\placeholder{B}
is more specialized than the function template
\tcode{A}
\placeholder{A}
and
the function template
\tcode{D}
\placeholder{D}
is more specialized than the function template
\tcode{C}.
Therefore,
the partial specialization
\tcode{\#2}
is more specialized than the partial specialization
\tcode{\#1}
and
the partial specialization
\tcode{\#4}
is more specialized than the partial specialization
\tcode{\#3}.
\placeholder{C}.
Therefore, the partial specialization \#2
is more specialized than the partial specialization \#1
and the partial specialization \#4
is more specialized than the partial specialization \#3.
\end{example}

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