File tree Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Original file line number Diff line number Diff line change 9898prefix \tcode {++} and \tcode {\dcr } expressions\iref {expr.pre.incr }
9999of \tcode {volatile}-qualified arithmetic and pointer types are deprecated.
100100
101+ \begin {example }
102+ \begin {codeblock }
103+ volatile int velociraptor;
104+ ++velociraptor; // deprecated
105+ \end {codeblock }
106+ \end {example }
107+
108+
101109\pnum
102110Certain assignments
103111where the left operand is a \tcode {volatile}-qualified non-class type
104112are deprecated; see~\ref {expr.ass }.
105113
114+ \begin {example }
115+ \begin {codeblock }
116+ int neck, tail;
117+ volatile int brachiosaur;
118+ brachiosaur = neck; // OK
119+ tail = brachiosaur; // OK
120+ tail = brachiosaur = neck; // deprecated
121+ brachiosaur += neck; // deprecated
122+ brachiosaur = brachiosaur + neck; // OK
123+ \end {codeblock }
124+ \end {example }
125+
126+
106127\pnum
107128A function type\iref {dcl.fct }
108129with a parameter with \tcode {volatile}-qualified type or
109130with a \tcode {volatile}-qualified return type is deprecated.
110131
132+ \begin {example }
133+ \begin {codeblock }
134+ volatile struct amber jurassic(); // deprecated
135+ void trex(volatile short left_arm, volatile short right_arm); // deprecated
136+ void fly(volatile struct pterosaur* pteranodon); // OK
137+ \end {codeblock }
138+ \end {example }
139+
140+
111141\pnum
112142A structured binding\iref {dcl.struct.bind } of a \tcode {volatile}-qualified type
113143is deprecated.
114144
145+ \begin {example }
146+ \begin {codeblock }
147+ struct linhenykus { short forelimb; };
148+ void park(linhenykus alvarezsauroid) {
149+ volatile auto [what_is_this] = alvarezsauroid; // deprecated
150+ // ...
151+ }
152+ \end {codeblock }
153+ \end {example }
154+
155+
115156\rSec 1[depr.static.constexpr]{Redeclaration of \tcode {static constexpr} data members}
116157
117158\pnum
You can’t perform that action at this time.
0 commit comments