Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- C++14
- 3.10 Lvalues and rvalues
- 10
- If a program attempts to access the stored value of an object through a glvalue of other than one of the
- following types the behavior is undefined:54
- — the dynamic type of the object,
- — a cv-qualified version of the dynamic type of the object,
- — a type similar (as defined in 4.4) to the dynamic type of the object,
- — a type that is the signed or unsigned type corresponding to the dynamic type of the object,
- — a type that is the signed or unsigned type corresponding to a cv-qualified version of the dynamic type
- of the object,
- — an aggregate or union type that includes one of the aforementioned types among its elements or nonstatic
- data members (including, recursively, an element or non-static data member of a subaggregate
- or contained union),
- — a type that is a (possibly cv-qualified) base class type of the dynamic type of the object,
- — a char or unsigned char type.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement