Skip to content

Commit 29aeaf5

Browse files
burblebeetkoeppe
authored andcommitted
LWG3818 Exposition-only concepts are not described in library intro
Fixes NB GB 074 (C++23 CD).
1 parent 10b8762 commit 29aeaf5

File tree

2 files changed

+8
-19
lines changed

2 files changed

+8
-19
lines changed

source/lib-intro.tex

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -478,13 +478,14 @@
478478
implementation-defined types\iref{type.descriptions},
479479
and member functions\iref{functions.within.classes}.
480480

481-
\rSec3[expos.only.func]{Exposition-only functions}
481+
\rSec3[expos.only.entity]{Exposition-only entities, etc.}
482482

483483
\pnum
484-
Several function templates
484+
Several entities and \grammarterm{typedef-name}{s}
485485
defined in \ref{\firstlibchapter} through \ref{\lastlibchapter} and \ref{depr}
486486
are only defined for the purpose of exposition.
487-
The declaration of such a function is followed by a comment ending in \expos.
487+
The declaration of such an entity or \grammarterm{typedef-name}
488+
is followed by a comment ending in \expos.
488489

489490
\pnum
490491
The following are defined for exposition only
@@ -546,22 +547,6 @@
546547
\indextext{types!implementation-defined}%
547548
They are based on other types, but with added constraints.
548549

549-
\rSec4[expos.only.types]{Exposition-only types}
550-
551-
\pnum
552-
Several types defined in \ref{\firstlibchapter} through \ref{\lastlibchapter}
553-
and \ref{depr} are defined for the purpose of exposition.
554-
The declaration of such a type is followed by a comment ending in \expos.
555-
\begin{example}
556-
\begin{codeblock}
557-
namespace std {
558-
extern "C" using @\placeholdernc{some-handler}@ = int(int, void*, double); // \expos
559-
}
560-
\end{codeblock}
561-
The type placeholder \tcode{\placeholder{some-handler}} can now be used to specify a function
562-
that takes a callback parameter with C language linkage.
563-
\end{example}
564-
565550
\rSec4[enumerated.types]{Enumerated types}
566551

567552
\pnum

source/xrefdelta.tex

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,5 +106,9 @@
106106
% LWG3659 Consider ATOMIC_FLAG_INIT undeprecation
107107
\removedxref{depr.atomics.flag}
108108

109+
% LWG3818 Exposition-only concepts are not described in library intro
110+
\movedxref{expos.only.func}{expos.only.entity}
111+
\removedxref{expos.only.types}
112+
109113
% Deprecated features.
110114
%\deprxref{old.label} (if moved to depr.old.label, otherwise use \movedxref)

0 commit comments

Comments
 (0)