Skip to content

Commit 10c9ea1

Browse files
committed
[macros,diff] Replace '(ISO) C++ 20xx' with the full document identifier
Fixes ISO/CS comment (C++23 proof)
1 parent 0074e75 commit 10c9ea1

File tree

2 files changed

+35
-34
lines changed

2 files changed

+35
-34
lines changed

source/compatibility.tex

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
%!TEX root = std.tex
22
\infannex{diff}{Compatibility}
33

4-
\rSec1[diff.cpp23]{\Cpp{} and ISO \CppXXIII{}}
4+
\rSec1[diff.cpp23]{\Cpp{} and \CppXXIII{}}
55

66
\rSec2[diff.cpp23.general]{General}
77

88
\pnum
9-
\indextext{summary!compatibility with ISO \CppXXIII{}}%
10-
Subclause \ref{diff.cpp23} lists the differences between \Cpp{} and
11-
ISO \CppXXIII{},
9+
\indextext{summary!compatibility with \CppXXIII{}}%
10+
Subclause \ref{diff.cpp23} lists the differences between this document and
11+
\CppXXIII{},
1212
by the chapters of this document.
1313

1414
\rSec2[diff.cpp23.expr]{\ref{expr}: expressions}
@@ -151,8 +151,8 @@
151151
int tag;
152152
};
153153

154-
static_assert(!allocator_traits<MyAlloc<int>>::is_always_equal); // Error in \CppXXIII{},
155-
// OK in \CppXXVI{}
154+
static_assert(!allocator_traits<MyAlloc<int>>::is_always_equal); // Error in \CppXXIII{},
155+
// OK in \CppXXVI{}
156156
\end{codeblock}
157157

158158
\nodiffref
@@ -233,14 +233,14 @@
233233
\effect
234234
A valid \CppXXIII{} program using these interfaces may become ill-formed.
235235

236-
\rSec1[diff.cpp20]{\Cpp{} and ISO \CppXX{}}
236+
\rSec1[diff.cpp20]{\Cpp{} and \CppXX{}}
237237

238238
\rSec2[diff.cpp20.general]{General}
239239

240240
\pnum
241-
\indextext{summary!compatibility with ISO \CppXX{}}%
242-
Subclause \ref{diff.cpp20} lists the differences between \Cpp{} and
243-
ISO \CppXX{},
241+
\indextext{summary!compatibility with \CppXX{}}%
242+
Subclause \ref{diff.cpp20} lists the differences between this document and
243+
\CppXX{},
244244
in addition to those listed above,
245245
by the chapters of this document.
246246

@@ -591,14 +591,14 @@
591591
b1.arrive(); // implementation-defined; previously well-defined
592592
\end{codeblock}
593593

594-
\rSec1[diff.cpp17]{\Cpp{} and ISO \CppXVII{}}
594+
\rSec1[diff.cpp17]{\Cpp{} and \CppXVII{}}
595595

596596
\rSec2[diff.cpp17.general]{General}
597597

598598
\pnum
599-
\indextext{summary!compatibility with ISO \CppXVII{}}%
600-
Subclause \ref{diff.cpp17} lists the differences between \Cpp{} and
601-
ISO \CppXVII{},
599+
\indextext{summary!compatibility with \CppXVII{}}%
600+
Subclause \ref{diff.cpp17} lists the differences between this document and
601+
\CppXVII{},
602602
in addition to those listed above,
603603
by the chapters of this document.
604604

@@ -1332,14 +1332,14 @@
13321332
\tcode{result_of} type traits, on the \tcode{is_literal_type_v} variable template,
13331333
or on the \tcode{result_of_t} alias template may fail to compile.
13341334

1335-
\rSec1[diff.cpp14]{\Cpp{} and ISO \CppXIV{}}
1335+
\rSec1[diff.cpp14]{\Cpp{} and \CppXIV{}}
13361336

13371337
\rSec2[diff.cpp14.general]{General}
13381338

13391339
\pnum
1340-
\indextext{summary!compatibility with ISO \CppXIV{}}%
1341-
Subclause \ref{diff.cpp14} lists the differences between \Cpp{} and
1342-
ISO \CppXIV{},
1340+
\indextext{summary!compatibility with \CppXIV{}}%
1341+
Subclause \ref{diff.cpp14} lists the differences between this document and
1342+
\CppXIV{},
13431343
in addition to those listed above,
13441344
by the chapters of this document.
13451345

@@ -1692,14 +1692,14 @@
16921692
A valid \CppXIV{} program using these identifiers
16931693
may be ill-formed in this revision of \Cpp{}.
16941694

1695-
\rSec1[diff.cpp11]{\Cpp{} and ISO \CppXI{}}
1695+
\rSec1[diff.cpp11]{\Cpp{} and \CppXI{}}
16961696

16971697
\rSec2[diff.cpp11.general]{General}
16981698

16991699
\pnum
1700-
\indextext{summary!compatibility with ISO \CppXI{}}%
1701-
Subclause \ref{diff.cpp11} lists the differences between \Cpp{} and
1702-
ISO \CppXI{},
1700+
\indextext{summary!compatibility with \CppXI{}}%
1701+
Subclause \ref{diff.cpp11} lists the differences between this document and
1702+
\CppXI{},
17031703
in addition to those listed above,
17041704
by the chapters of this document.
17051705

@@ -1845,14 +1845,14 @@
18451845
Valid \CppXI{} code that uses the \tcode{gets} function may fail to compile
18461846
in this revision of \Cpp{}.
18471847

1848-
\rSec1[diff.cpp03]{\Cpp{} and ISO \CppIII{}}
1848+
\rSec1[diff.cpp03]{\Cpp{} and \CppIII{}}
18491849

18501850
\rSec2[diff.cpp03.general]{General}
18511851

18521852
\pnum
1853-
\indextext{summary!compatibility with ISO \CppIII{}}%
1854-
Subclause \ref{diff.cpp03} lists the differences between \Cpp{} and
1855-
ISO \CppIII{},
1853+
\indextext{summary!compatibility with \CppIII{}}%
1854+
Subclause \ref{diff.cpp03} lists the differences between this document and
1855+
\CppIII{},
18561856
in addition to those listed above,
18571857
by the chapters of this document.
18581858

@@ -2387,7 +2387,7 @@
23872387
\tcode{std::exception}, but is now derived from \tcode{std::system_error},
23882388
which in turn is derived from \tcode{std::runtime_error}. Valid \CppIII{} code
23892389
that assumes that \tcode{std::ios_base::failure} is derived directly from
2390-
\tcode{std::exception} may execute differently in this revision of \Cpp{}.
2390+
\tcode{std::excep\-tion} may execute differently in this revision of \Cpp{}.
23912391

23922392
\diffref{ios.base}
23932393
\change
@@ -2415,7 +2415,7 @@
24152415

24162416
\pnum
24172417
\indextext{summary!compatibility with ISO C}%
2418-
Subclause \ref{diff.iso} lists the differences between \Cpp{} and ISO C,
2418+
Subclause \ref{diff.iso} lists the differences between this document and \IsoC{},
24192419
in addition to those listed above,
24202420
by the chapters of this document.
24212421

source/macros.tex

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -277,12 +277,13 @@
277277
%% Macros for funky text
278278
%%--------------------------------------------------
279279
\newcommand{\Cpp}{\texorpdfstring{C\kern-0.05em\protect\raisebox{.35ex}{\textsmaller[2]{+\kern-0.05em+}}}{C++}}
280-
\newcommand{\CppIII}{\Cpp{} 2003}
281-
\newcommand{\CppXI}{\Cpp{} 2011}
282-
\newcommand{\CppXIV}{\Cpp{} 2014}
283-
\newcommand{\CppXVII}{\Cpp{} 2017}
284-
\newcommand{\CppXX}{\Cpp{} 2020}
285-
\newcommand{\CppXXIII}{\Cpp{} 2023}
280+
\newcommand{\IsoCppUndated}{ISO/IEC 14882}
281+
\newcommand{\CppIII}{\IsoCppUndated{}:2003}
282+
\newcommand{\CppXI}{\IsoCppUndated{}:2011}
283+
\newcommand{\CppXIV}{\IsoCppUndated{}:2014}
284+
\newcommand{\CppXVII}{\IsoCppUndated{}:2017}
285+
\newcommand{\CppXX}{\IsoCppUndated{}:2020}
286+
\newcommand{\CppXXIII}{\IsoCppUndated{}:2024}
286287
\newcommand{\CppXXVI}{\Cpp{} 2026}
287288
\newcommand{\IsoCUndated}{ISO/IEC 9899}
288289
\newcommand{\IsoC}{\IsoCUndated{}:2018}

0 commit comments

Comments
 (0)