Skip to content

Commit c3cc50b

Browse files
committed
// OK; -> // OK: // error; -> // error:
1 parent cd7bd3e commit c3cc50b

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

source/basic.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3655,7 +3655,7 @@
36553655

36563656
X x;
36573657
void bar() {
3658-
xp = &x; // OK; type is ``pointer to \tcode{X}''
3658+
xp = &x; // OK: type is ``pointer to \tcode{X}''
36593659
arrp = &arr; // ill-formed: different types
36603660
xp++; // OK: \tcode{X} is complete
36613661
arrp++; // ill-formed: \tcode{UNKA} can't be completed

source/declarators.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1948,7 +1948,7 @@
19481948
int a;
19491949
int mem1(int i = a); // error: non-static member \tcode{a}
19501950
// used as default argument
1951-
int mem2(int i = b); // OK; use \tcode{X::b}
1951+
int mem2(int i = b); // OK: use \tcode{X::b}
19521952
static int b;
19531953
};
19541954
\end{codeblock}
@@ -3857,7 +3857,7 @@
38573857
enum byte : unsigned char { };
38583858
byte b { 42 }; // OK
38593859
byte c = { 42 }; // error
3860-
byte d = byte{ 42 }; // OK; same value as \tcode{b}
3860+
byte d = byte{ 42 }; // OK: same value as \tcode{b}
38613861
byte e { -1 }; // error
38623862

38633863
struct A { byte b; };

source/templates.tex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7206,7 +7206,7 @@
72067206
};
72077207

72087208
using R = long;
7209-
using R = C<A<2>>::Q; // OK; \tcode{T} was deduced to \tcode{long} from the
7209+
using R = C<A<2>>::Q; // OK: \tcode{T} was deduced to \tcode{long} from the
72107210
// template argument value in the type \tcode{A<2>}
72117211
\end{codeblock}
72127212
\end{example}
@@ -7219,7 +7219,7 @@
72197219
};
72207220

72217221
using V = decltype(sizeof 0);
7222-
using V = S<int[42]>::Q; // OK; \tcode{T} was deduced to \tcode{std::size_t} from the type \tcode{int[42]}
7222+
using V = S<int[42]>::Q; // OK: \tcode{T} was deduced to \tcode{std::size_t} from the type \tcode{int[42]}
72237223
\end{codeblock}
72247224
\end{example}
72257225

@@ -7410,7 +7410,7 @@
74107410
Y<> y1; // use primary template; \tcode{Types} is empty
74117411
Y<int&, float&, double&> y2; // uses partial specialization; \tcode{T} is \tcode{int\&}, \tcode{Types} contains \tcode{float}, \tcode{double}
74127412
Y<int, float, double> y3; // uses primary template; \tcode{Types} contains \tcode{int}, \tcode{float}, \tcode{double}
7413-
int fv = f(g); // OK; \tcode{Types} contains \tcode{int}, \tcode{float}
7413+
int fv = f(g); // OK: \tcode{Types} contains \tcode{int}, \tcode{float}
74147414
\end{codeblock}
74157415

74167416
\end{example}

source/utilities.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5298,7 +5298,7 @@
52985298
const any y(cat); // \tcode{const y} holds \tcode{string}
52995299
assert(any_cast<const string&>(y) == cat);
53005300

5301-
any_cast<string&>(y); // error; cannot
5301+
any_cast<string&>(y); // error: cannot
53025302
// \tcode{any_cast} away const
53035303
\end{codeblock}
53045304
\end{example}

0 commit comments

Comments
 (0)