File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 319
319
that does not denote an object of type \cv {}~\keyword {U} within its lifetime,
320
320
the behavior is undefined.
321
321
\begin {note }
322
- Unlike in C, \Cpp {} has no accesses of class type.
322
+ In C, an entire object of structure type can be accessed, e.g. using assignment.
323
+ By contrast, \Cpp {} has no notion of accessing an object of class type
324
+ through an lvalue of class type.
323
325
\end {note }
324
326
325
327
\rSec 2[expr.type]{Type}
Original file line number Diff line number Diff line change 137
137
read or modify the value of an object
138
138
139
139
\begin {defnote }
140
- Only objects of scalar type can be accessed .
140
+ Only glvalues of scalar type can be used to access objects .
141
141
Reads of scalar objects are described in \ref {conv.lval } and
142
- modifications of scalar objects are describred in
142
+ modifications of scalar objects are described in
143
143
\ref {expr.ass }, \ref {expr.post.incr }, and \ref {expr.pre.incr }.
144
144
Attempts to read or modify an object of class type
145
145
typically invoke a constructor\iref {class.ctor }
You can’t perform that action at this time.
0 commit comments