Skip to content

Commit 7825bd1

Browse files
Dawn Perchikzygoloid
authored andcommitted
NB US 367 (C++20 CD): Instead of header inclusion, also permit header unit import
1 parent 070d8bf commit 7825bd1

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

source/basic.tex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3665,13 +3665,13 @@
36653665
\tcode{std::align_val_t},
36663666
or any other names that the library uses to
36673667
declare these names. Thus, a \grammarterm{new-expression},
3668-
\grammarterm{delete-expression} or function call that refers to one of
3669-
these functions without including the header \libheaderref{new} is
3668+
\grammarterm{delete-expression}, or function call that refers to one of
3669+
these functions without importing or including the header \libheaderref{new} is
36703670
well-formed. However, referring to \tcode{std}
36713671
or \tcode{std::size_t}
36723672
or \tcode{std::align_val_t}
36733673
is ill-formed unless the name has been declared
3674-
by including the appropriate header.
3674+
by importing or including the appropriate header.
36753675
\end{note}
36763676
Allocation and/or
36773677
deallocation functions may also be declared and defined for any

source/declarations.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5500,7 +5500,7 @@
55005500
\end{note}
55015501
The template
55025502
\tcode{std::initializer_list} is not predefined; if the header
5503-
\tcode{<initializer_list>} is not included prior to a use of
5503+
\tcode{<initializer_list>} is not imported or included prior to a use of
55045504
\tcode{std::initializer_list} --- even an implicit use in which the type is not
55055505
named\iref{dcl.spec.auto} --- the program is ill-formed.
55065506

source/expressions.tex

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3597,7 +3597,8 @@
35973597
\end{example}
35983598

35993599
\pnum
3600-
If the header \libheaderrefx{typeinfo}{type.info} is not included prior
3600+
If the header \libheaderrefx{typeinfo}{type.info}
3601+
is not imported or included prior
36013602
to a use of \tcode{typeid}, the program is ill-formed.
36023603

36033604
\pnum
@@ -6007,7 +6008,7 @@
60076008
\tcode{std::partial_ordering})
60086009
are not predefined;
60096010
if the header \libheaderref{compare}
6010-
is not included prior to a use of such a class type --
6011+
is not imported or included prior to a use of such a class type --
60116012
even an implicit use in which the type is not named
60126013
(e.g., via the \tcode{auto} specifier\iref{dcl.spec.auto}
60136014
in a defaulted three-way comparison\iref{class.spaceship}

0 commit comments

Comments
 (0)