Skip to content

Commit

Permalink
[conv.lval] Improve a bit more the note about std::nullptr_t case
Browse files Browse the repository at this point in the history
- "read the object" -> "access the object"
  The "read" was derived from the rule at [intro.execution], but it
  didn't fit well here.
- "the object" -> "the object to which the glvalue refers"
  Make it clear what "the object" refers to.

#2372 (review)
  • Loading branch information
k-satoda authored and zygoloid committed Nov 26, 2018
1 parent 0b35a46 commit 8ddcba4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/expressions.tex
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,7 @@
\item If \tcode{T} is \cv{}~\tcode{std::nullptr_t}, the result is a
null pointer constant\iref{conv.ptr}.
\begin{note}
Since the conversion does not read the object,
Since the conversion does not access the object to which the glvalue refers,
there is no side effect even if \tcode{T} is volatile-qualified\iref{intro.execution}, and
the glvalue can refer to an inactive member of a union\iref{class.union}.
\end{note}
Expand Down

0 comments on commit 8ddcba4

Please sign in to comment.