Skip to content

Commit 53bde78

Browse files
jensmaurertkoeppe
authored andcommitted
[class] Replace 'could' and 'might'
as directed by ISO/CS.
1 parent 4b31ba9 commit 53bde78

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

source/classes.tex

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@
632632
In a \grammarterm{member-declarator} for a bit-field,
633633
the \grammarterm{constant-expression} is parsed as
634634
the longest sequence of tokens
635-
that could syntactically form a \grammarterm{constant-expression}.
635+
that matches the syntax of a \grammarterm{constant-expression}.
636636
\begin{example}
637637
\begin{codeblock}
638638
int a;
@@ -1323,7 +1323,7 @@
13231323
\begin{note}
13241324
An implicitly-declared default constructor has an
13251325
exception specification\iref{except.spec}.
1326-
An explicitly-defaulted definition might have an
1326+
An explicitly-defaulted definition can have an
13271327
implicit exception specification, see~\ref{dcl.fct.def}.
13281328
\end{note}
13291329

@@ -1526,7 +1526,7 @@
15261526

15271527
\begin{note}
15281528
When the move constructor is not implicitly declared or explicitly supplied,
1529-
expressions that otherwise would have invoked the move constructor might instead invoke
1529+
expressions that otherwise would have invoked the move constructor can instead invoke
15301530
a copy constructor.
15311531
\end{note}
15321532

@@ -2148,11 +2148,9 @@
21482148
Bases and members are destroyed in the reverse order of the completion of
21492149
their constructor (see~\ref{class.base.init}).
21502150
\begin{note}
2151-
A
2152-
\tcode{return}
2153-
statement\iref{stmt.return} in a destructor might not directly return to the
2154-
caller; before transferring control to the caller, the destructors for the
2155-
members and bases are called.
2151+
A \tcode{return} statement\iref{stmt.return} in a destructor
2152+
calls the destructors for the members and bases (if any)
2153+
before transferring control to the caller.
21562154
\end{note}
21572155
\indextext{order of execution!destructor and array}%
21582156
Destructors for elements of an array are called in reverse order of their
@@ -2550,7 +2548,7 @@
25502548
in a
25512549
\grammarterm{conversion-function-id}
25522550
is the longest sequence of
2553-
tokens that could possibly form a \grammarterm{conversion-type-id}.
2551+
tokens that matches the syntax of a \grammarterm{conversion-type-id}.
25542552
\begin{note}
25552553
This prevents ambiguities between the declarator operator \tcode{*} and its expression
25562554
counterparts.
@@ -4096,7 +4094,7 @@
40964094
\grammarterm{pure-specifier}\iref{class.mem} in the function declaration
40974095
in the class definition.
40984096
\begin{note}
4099-
Such a function might be inherited: see below.
4097+
Such a function can be inherited: see below.
41004098
\end{note}
41014099
A class is an \defnadj{abstract}{class}
41024100
if it has at least one pure virtual function.
@@ -4468,7 +4466,7 @@
44684466
\begin{note}
44694467
In a derived class, the lookup of a base class name will find the
44704468
injected-class-name instead of the name of the base class in the scope
4471-
in which it was declared. The injected-class-name might be less accessible
4469+
in which it was declared. The injected-class-name can be less accessible
44724470
than the name of the base class in the scope in which it was declared.
44734471
\end{note}
44744472

@@ -6049,7 +6047,7 @@
60496047
struct X { X(A*); };
60506048

60516049
struct E : C, D, X {
6052-
E() : D(this), // undefined behavior: upcast from \tcode{E*} to \tcode{A*} might use path \tcode{E*} $\rightarrow$ \tcode{D*} $\rightarrow$ \tcode{A*}
6050+
E() : D(this), // undefined behavior: upcast from \tcode{E*} to \tcode{A*} can use path \tcode{E*} $\rightarrow$ \tcode{D*} $\rightarrow$ \tcode{A*}
60536051
// but \tcode{D} is not constructed
60546052

60556053
// ``\tcode{D((C*)this)}\!'' would be defined: \tcode{E*} $\rightarrow$ \tcode{C*} is defined because \tcode{E()} has started,

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy