Skip to content

Commit 097c762

Browse files
jensmaurertkoeppe
authored andcommitted
[macros,diff] Replace '(ISO) C++ 20xx' with the full document identifier
Fixes ISO/CS comment (C++23 proof)
1 parent 5731ab6 commit 097c762

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}
@@ -157,8 +157,8 @@
157157
int tag;
158158
};
159159

160-
static_assert(!allocator_traits<MyAlloc<int>>::is_always_equal); // Error in \CppXXIII{},
161-
// OK in \CppXXVI{}
160+
static_assert(!allocator_traits<MyAlloc<int>>::is_always_equal); // Error in \CppXXIII{},
161+
// OK in \CppXXVI{}
162162
\end{codeblock}
163163
\end{example}
164164

@@ -240,14 +240,14 @@
240240
\effect
241241
A valid \CppXXIII{} program using these interfaces may become ill-formed.
242242

243-
\rSec1[diff.cpp20]{\Cpp{} and ISO \CppXX{}}
243+
\rSec1[diff.cpp20]{\Cpp{} and \CppXX{}}
244244

245245
\rSec2[diff.cpp20.general]{General}
246246

247247
\pnum
248-
\indextext{summary!compatibility with ISO \CppXX{}}%
249-
Subclause \ref{diff.cpp20} lists the differences between \Cpp{} and
250-
ISO \CppXX{},
248+
\indextext{summary!compatibility with \CppXX{}}%
249+
Subclause \ref{diff.cpp20} lists the differences between this document and
250+
\CppXX{},
251251
in addition to those listed above,
252252
by the chapters of this document.
253253

@@ -611,14 +611,14 @@
611611
\end{codeblock}
612612
\end{example}
613613

614-
\rSec1[diff.cpp17]{\Cpp{} and ISO \CppXVII{}}
614+
\rSec1[diff.cpp17]{\Cpp{} and \CppXVII{}}
615615

616616
\rSec2[diff.cpp17.general]{General}
617617

618618
\pnum
619-
\indextext{summary!compatibility with ISO \CppXVII{}}%
620-
Subclause \ref{diff.cpp17} lists the differences between \Cpp{} and
621-
ISO \CppXVII{},
619+
\indextext{summary!compatibility with \CppXVII{}}%
620+
Subclause \ref{diff.cpp17} lists the differences between this document and
621+
\CppXVII{},
622622
in addition to those listed above,
623623
by the chapters of this document.
624624

@@ -1371,14 +1371,14 @@
13711371
\tcode{result_of} type traits, on the \tcode{is_literal_type_v} variable template,
13721372
or on the \tcode{result_of_t} alias template may fail to compile.
13731373

1374-
\rSec1[diff.cpp14]{\Cpp{} and ISO \CppXIV{}}
1374+
\rSec1[diff.cpp14]{\Cpp{} and \CppXIV{}}
13751375

13761376
\rSec2[diff.cpp14.general]{General}
13771377

13781378
\pnum
1379-
\indextext{summary!compatibility with ISO \CppXIV{}}%
1380-
Subclause \ref{diff.cpp14} lists the differences between \Cpp{} and
1381-
ISO \CppXIV{},
1379+
\indextext{summary!compatibility with \CppXIV{}}%
1380+
Subclause \ref{diff.cpp14} lists the differences between this document and
1381+
\CppXIV{},
13821382
in addition to those listed above,
13831383
by the chapters of this document.
13841384

@@ -1740,14 +1740,14 @@
17401740
A valid \CppXIV{} program using these identifiers
17411741
may be ill-formed in this revision of \Cpp{}.
17421742

1743-
\rSec1[diff.cpp11]{\Cpp{} and ISO \CppXI{}}
1743+
\rSec1[diff.cpp11]{\Cpp{} and \CppXI{}}
17441744

17451745
\rSec2[diff.cpp11.general]{General}
17461746

17471747
\pnum
1748-
\indextext{summary!compatibility with ISO \CppXI{}}%
1749-
Subclause \ref{diff.cpp11} lists the differences between \Cpp{} and
1750-
ISO \CppXI{},
1748+
\indextext{summary!compatibility with \CppXI{}}%
1749+
Subclause \ref{diff.cpp11} lists the differences between this document and
1750+
\CppXI{},
17511751
in addition to those listed above,
17521752
by the chapters of this document.
17531753

@@ -1897,14 +1897,14 @@
18971897
Valid \CppXI{} code that uses the \tcode{gets} function may fail to compile
18981898
in this revision of \Cpp{}.
18991899

1900-
\rSec1[diff.cpp03]{\Cpp{} and ISO \CppIII{}}
1900+
\rSec1[diff.cpp03]{\Cpp{} and \CppIII{}}
19011901

19021902
\rSec2[diff.cpp03.general]{General}
19031903

19041904
\pnum
1905-
\indextext{summary!compatibility with ISO \CppIII{}}%
1906-
Subclause \ref{diff.cpp03} lists the differences between \Cpp{} and
1907-
ISO \CppIII{},
1905+
\indextext{summary!compatibility with \CppIII{}}%
1906+
Subclause \ref{diff.cpp03} lists the differences between this document and
1907+
\CppIII{},
19081908
in addition to those listed above,
19091909
by the chapters of this document.
19101910

@@ -2446,7 +2446,7 @@
24462446
\tcode{std::exception}, but is now derived from \tcode{std::system_error},
24472447
which in turn is derived from \tcode{std::runtime_error}. Valid \CppIII{} code
24482448
that assumes that \tcode{std::ios_base::failure} is derived directly from
2449-
\tcode{std::exception} may execute differently in this revision of \Cpp{}.
2449+
\tcode{std::excep\-tion} may execute differently in this revision of \Cpp{}.
24502450

24512451
\diffref{ios.base}
24522452
\change
@@ -2475,7 +2475,7 @@
24752475

24762476
\pnum
24772477
\indextext{summary!compatibility with C}%
2478-
Subclause \ref{diff.iso} lists the differences between \Cpp{} and C,
2478+
Subclause \ref{diff.iso} lists the differences between this document and \IsoC{},
24792479
in addition to those listed above,
24802480
by the chapters of this document.
24812481

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)