Skip to content

Commit f2441e1

Browse files
committed
[ub] Replace non-ASCII chars
1 parent d02f578 commit f2441e1

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

source/ub.tex

+15-15
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@
460460
\pnum
461461
\ubxref{expr.call.different.type} \\
462462
Calling a function through an expression whose function type is different from the function type of the called
463-
functions definition results in undefined behavior.
463+
function's definition results in undefined behavior.
464464

465465
\pnum
466466
\begin{example}
@@ -814,7 +814,7 @@
814814

815815
\pnum
816816
\ubxref{expr.add.polymorphic} \\
817-
For addition or subtraction, if the expressions P or Q have type pointer to cv T, where T and the array
817+
For addition or subtraction, if the expressions P or Q have type ``pointer to cv T'', where T and the array
818818
element type are not similar \iref{conv.rval}, the behavior is undefined.
819819

820820
\pnum
@@ -1183,8 +1183,8 @@
11831183
\pnum
11841184
\ubxref{class.dtor.not.class.type} \\
11851185
The invocation of a destructor is subject to the usual rules for
1186-
member functions \iref{class.mfct}; that is, if the object is not of the destructors class type and not of a class derived
1187-
from the destructors class type (including when the destructor is invoked via a null pointer value), the
1186+
member functions \iref{class.mfct}; that is, if the object is not of the destructor's class type and not of a class derived
1187+
from the destructor's class type (including when the destructor is invoked via a null pointer value), the
11881188
program has undefined behavior.
11891189

11901190
\pnum
@@ -1266,7 +1266,7 @@
12661266
int n = y.x.a;
12671267
y.k = 4; // OK, ends lifetime of \tcode{y.x}, \tcode{y.k} is active member of union
12681268
y.x.b = n; // undefined behavior: \tcode{y.x.b} modified outside its lifetime,
1269-
// \tcode{S(y.x.b)} is empty because \tcode{X}s default constructor is deleted,
1269+
// \tcode{S(y.x.b)} is empty because \tcode{X}'s default constructor is deleted,
12701270
// so union member \tcode{y.x}'s lifetime does not implicitly start
12711271
}
12721272
\end{codeblock}
@@ -1366,7 +1366,7 @@
13661366
extern B bobj;
13671367
B *pb = &bobj; // OK
13681368
int *p1 = &bobj.a; // undefined, refers to base class member
1369-
int *p2 = &bobj.y.i; // undefined, refers to members member
1369+
int *p2 = &bobj.y.i; // undefined, refers to member's member
13701370

13711371
A *pa = &bobj; // undefined, upcast to a base class type
13721372
B bobj; // definition of \tcode{bobj}
@@ -1423,11 +1423,11 @@
14231423
\pnum
14241424
\ubxref{class.cdtor.virtual.not.x} \\
14251425
When a virtual function is called directly or indirectly from a constructor or from a destructor,
1426-
including during the construction or destruction of the classs non-static data members, and the object to
1426+
including during the construction or destruction of the class's non-static data members, and the object to
14271427
which the call applies is the object (call it \tcode{x}) under construction or destruction, the function called is the
1428-
final overrider in the constructors or destructors class and not one overriding it in a more-derived class.
1428+
final overrider in the constructor's or destructor's class and not one overriding it in a more-derived class.
14291429
If the virtual function call uses an explicit class member access \iref{expr.ref} and the object expression refers
1430-
to the complete object of \tcode{x} or one of that objects base class subobjects but not \tcode{x} or one of its base class
1430+
to the complete object of \tcode{x} or one of that object's base class subobjects but not \tcode{x} or one of its base class
14311431
subobjects, the behavior is undefined.
14321432

14331433
\pnum
@@ -1467,7 +1467,7 @@
14671467
\ubxref{class.cdtor.typeid} \\
14681468
If the operand of \tcode{typeid} refers to
14691469
the object under construction or destruction and the static type of the operand is neither the constructor or
1470-
destructors class nor one of its bases, the behavior is undefined.
1470+
destructor's class nor one of its bases, the behavior is undefined.
14711471

14721472
\pnum
14731473
\begin{example}
@@ -1498,7 +1498,7 @@
14981498
\ubxref{class.cdtor.dynamic.cast} \\
14991499
If the operand of the
15001500
\tcode{dynamic_cast} refers to the object under construction or destruction and the static type of the operand is
1501-
not a pointer to or object of the constructor or destructors own class or one of its bases, the \tcode{dynamic_cast}
1501+
not a pointer to or object of the constructor or destructor's own class or one of its bases, the \tcode{dynamic_cast}
15021502
results in undefined behavior.
15031503

15041504
\pnum
@@ -1668,10 +1668,10 @@
16681668
\pnum
16691669
\begin{example}
16701670
\begin{codeblock}
1671-
#define GUARD_NAME ï ## _GUARD // Undefined behavior, character sequence produced contains
1672-
// a universal-character-name
1673-
#define COLUMN ï ##_column // Undefined behavior, character sequence produced contains
1674-
// a universal-character-name
1671+
#define GUARD_NAME ï ## _GUARD // undefined behavior, character sequence produced contains
1672+
// a \grammarterm{universal-character-name}
1673+
#define COLUMN ï ##_column // undefined behavior, character sequence produced contains
1674+
// a \grammarterm{universal-character-name}
16751675
\end{codeblock}
16761676
\end{example}
16771677

0 commit comments

Comments
 (0)