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 authored and tkoeppe committed Oct 23, 2024
1 parent 6ba0dc9 commit 9dc7b3f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
14 changes: 6 additions & 8 deletions source/basic.tex
Original file line number Diff line number Diff line change
Expand Up @@ -3911,6 +3911,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 @@ -4243,14 +4249,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/7345
\movedxref{basic.stc.inherit}{basic.stc.general}

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

0 comments on commit 9dc7b3f

Please sign in to comment.