Skip to content

[basic.life] Move definition of "before" and "after" from last paragraph #6061

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 10 additions & 9 deletions source/basic.tex
Original file line number Diff line number Diff line change
Expand Up @@ -3456,6 +3456,10 @@

\rSec2[basic.life]{Lifetime}

\pnum
In this subclause, ``before'' and ``after'' refer to the ``happens before''
relation\iref{intro.multithread}.

\pnum
\indextext{object lifetime|(}%
The \defn{lifetime} of an object or reference is a runtime property of the
Expand Down Expand Up @@ -3631,6 +3635,12 @@
\keyword{typeid}.
\end{itemize}

\begin{note}
Therefore, undefined behavior results
if an object that is being constructed in one thread is referenced from another
thread without adequate synchronization.
\end{note}

\pnum
An object $o_1$ is \defn{transparently replaceable} by an object $o_2$ if
\begin{itemize}
Expand Down Expand Up @@ -3741,15 +3751,6 @@
}
\end{codeblock}
\end{example}

\pnum
In this subclause, ``before'' and ``after'' refer to the ``happens before''
relation\iref{intro.multithread}.
\begin{note}
Therefore, undefined behavior results
if an object that is being constructed in one thread is referenced from another
thread without adequate synchronization.
\end{note}
\indextext{object lifetime|)}

\rSec2[basic.indet]{Indeterminate and erroneous values}
Expand Down
Loading