Skip to content

Commit

Permalink
[basic.stc.inherit] Dissolve paragraph into [...general]
Browse files Browse the repository at this point in the history
The whole subclause [basic.stc.inherit] is a single sentence that
belongs adjacent to the material in [basic.std.general] that
specifies how entities acquire a storage duration, wheras all the
remaining subclauses below [basic.stc] describe specific storage
durations.  Folding that sentence directly into the general clause
is even clearer.
  • Loading branch information
AlisdairM committed Oct 22, 2024
1 parent eb9872a commit 1778cb3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
16 changes: 7 additions & 9 deletions source/basic.tex
Original file line number Diff line number Diff line change
Expand Up @@ -3902,7 +3902,7 @@
\indextext{storage duration!automatic}%
\indextext{storage duration!dynamic}%
Static, thread, and automatic storage durations are associated with objects
introduced by declarations\iref{basic.def} and
and references introduced by declarations\iref{basic.def} and
with temporary objects\iref{class.temporary}.
The dynamic storage duration
is associated with objects created by a
Expand All @@ -3912,6 +3912,12 @@
\pnum
The storage duration categories apply to references as well.

\pnum
\indextext{storage duration!class member}%
The storage duration of subobjects and reference members
is that of their complete object\iref{intro.object}.
\indextext{storage duration|)}%

\rSec3[basic.stc.static]{Static storage duration}

\pnum
Expand Down Expand Up @@ -4244,14 +4250,6 @@
deallocation function shall deallocate the storage referenced by the
pointer, ending the duration of the region of storage.

\rSec3[basic.stc.inherit]{Duration of subobjects}

\pnum
\indextext{storage duration!class member}%
The storage duration of subobjects and reference members
is that of their complete object\iref{intro.object}.
\indextext{storage duration|)}%

\rSec2[basic.align]{Alignment}

\pnum
Expand Down
3 changes: 3 additions & 0 deletions source/xrefdelta.tex
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@
\movedxref{stoptoken.cons}{stopsource}
\movedxref{stoptoken.nonmembers}{stopsource}

% https://github.com/cplusplus/draft/pull/7???
\movedxref{basic.stc.inherit}{basic.stc.general}

%%% Deprecated features.
%%% Example:
%
Expand Down

0 comments on commit 1778cb3

Please # to comment.