Skip to content

Commit 97b1786

Browse files
committed
LWG3441 Misleading note about calls to customization points
1 parent 9ce105b commit 97b1786

File tree

3 files changed

+0
-51
lines changed

3 files changed

+0
-51
lines changed

source/iterators.tex

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7190,8 +7190,6 @@
71907190
\libheaderrefx{unordered_map}{unord.map.syn},
71917191
\libheaderrefx{unordered_set}{unord.set.syn}, and
71927192
\libheaderref{vector}.
7193-
Each of these templates
7194-
is a designated customization point\iref{namespace.std}.
71957193

71967194
\indexlibrary{\idxcode{begin(C\&)}}%
71977195
\begin{itemdecl}

source/lib-intro.tex

Lines changed: 0 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -2872,53 +2872,6 @@
28722872
either a standard library non-static member function\iref{member.functions}
28732873
or an instantiation of a standard library member function template.
28742874

2875-
\pnum
2876-
Other than in namespace \tcode{std}
2877-
or in a namespace
2878-
within namespace \tcode{std},
2879-
a program may provide
2880-
an overload for any library function template
2881-
designated as a \defn{customization point},
2882-
provided that
2883-
(a)
2884-
the overload's declaration depends
2885-
on at least one user-defined type
2886-
and
2887-
(b)
2888-
the overload meets the standard library requirements
2889-
for the customization point.
2890-
\begin{footnote}
2891-
Any library customization point
2892-
must be prepared
2893-
to work adequately
2894-
with any user-defined overload
2895-
that meets the minimum requirements
2896-
of this document.
2897-
Therefore
2898-
an implementation can elect,
2899-
under the as-if rule\iref{intro.execution},
2900-
to provide any customization point
2901-
in the form
2902-
of an instantiated function object\iref{function.objects}
2903-
even though the customization point's specification
2904-
is in the form
2905-
of a function template.
2906-
The template parameters
2907-
of each such function object
2908-
and the function parameters
2909-
and return type
2910-
of the object's \tcode{operator()}
2911-
must match those
2912-
of the corresponding customization point's specification.
2913-
\end{footnote}
2914-
\begin{note}
2915-
This permits
2916-
a (qualified or unqualified) call
2917-
to the customization point
2918-
to invoke the most appropriate overload
2919-
for the given arguments.
2920-
\end{note}
2921-
29222875
\pnum
29232876
A translation unit shall not declare namespace \tcode{std} to be an inline namespace\iref{namespace.def}.
29242877

source/utilities.tex

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,8 +247,6 @@
247247

248248
\pnum
249249
\remarks
250-
This function
251-
is a designated customization point\iref{namespace.std}.
252250
The exception specification is equivalent to:
253251

254252
\begin{codeblock}

0 commit comments

Comments
 (0)