Skip to content

Commit 131071c

Browse files
committed
// OK; -> // OK: // error; -> // error:
1 parent 095b304 commit 131071c

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
@@ -3594,7 +3594,7 @@
35943594

35953595
X x;
35963596
void bar() {
3597-
xp = &x; // OK; type is ``pointer to \tcode{X}''
3597+
xp = &x; // OK: type is ``pointer to \tcode{X}''
35983598
arrp = &arr; // ill-formed: different types
35993599
xp++; // OK: \tcode{X} is complete
36003600
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
@@ -1949,7 +1949,7 @@
19491949
int a;
19501950
int mem1(int i = a); // error: non-static member \tcode{a}
19511951
// used as default argument
1952-
int mem2(int i = b); // OK; use \tcode{X::b}
1952+
int mem2(int i = b); // OK: use \tcode{X::b}
19531953
static int b;
19541954
};
19551955
\end{codeblock}
@@ -3904,7 +3904,7 @@
39043904
enum byte : unsigned char { };
39053905
byte b { 42 }; // OK
39063906
byte c = { 42 }; // error
3907-
byte d = byte{ 42 }; // OK; same value as \tcode{b}
3907+
byte d = byte{ 42 }; // OK: same value as \tcode{b}
39083908
byte e { -1 }; // error
39093909

39103910
struct A { byte b; };

source/templates.tex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7286,7 +7286,7 @@
72867286
};
72877287

72887288
using R = long;
7289-
using R = C<A<2>>::Q; // OK; \tcode{T} was deduced to \tcode{long} from the
7289+
using R = C<A<2>>::Q; // OK: \tcode{T} was deduced to \tcode{long} from the
72907290
// template argument value in the type \tcode{A<2>}
72917291
\end{codeblock}
72927292
\end{example}
@@ -7299,7 +7299,7 @@
72997299
};
73007300

73017301
using V = decltype(sizeof 0);
7302-
using V = S<int[42]>::Q; // OK; \tcode{T} was deduced to \tcode{std::size_t} from the type \tcode{int[42]}
7302+
using V = S<int[42]>::Q; // OK: \tcode{T} was deduced to \tcode{std::size_t} from the type \tcode{int[42]}
73037303
\end{codeblock}
73047304
\end{example}
73057305

@@ -7490,7 +7490,7 @@
74907490
Y<> y1; // use primary template; \tcode{Types} is empty
74917491
Y<int&, float&, double&> y2; // uses partial specialization; \tcode{T} is \tcode{int\&}, \tcode{Types} contains \tcode{float}, \tcode{double}
74927492
Y<int, float, double> y3; // uses primary template; \tcode{Types} contains \tcode{int}, \tcode{float}, \tcode{double}
7493-
int fv = f(g); // OK; \tcode{Types} contains \tcode{int}, \tcode{float}
7493+
int fv = f(g); // OK: \tcode{Types} contains \tcode{int}, \tcode{float}
74947494
\end{codeblock}
74957495

74967496
\end{example}

source/utilities.tex

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

5880-
any_cast<string&>(y); // error; cannot
5880+
any_cast<string&>(y); // error: cannot
58815881
// \tcode{any_cast} away const
58825882
\end{codeblock}
58835883
\end{example}

0 commit comments

Comments
 (0)