We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1894a77 commit e4bc84cCopy full SHA for e4bc84c
source/declarators.tex
@@ -3650,9 +3650,9 @@
3650
const double& rcd2 = 2; // \tcode{rcd2} refers to temporary with value \tcode{2.0}
3651
double&& rrd = 2; // \tcode{rrd} refers to temporary with value \tcode{2.0}
3652
const volatile int cvi = 1;
3653
-const int& r2 = cvi; // error: type qualifiers dropped
+const int& r2 = cvi; // error: cv-qualifier dropped
3654
struct A { operator volatile int&(); } a;
3655
-const int& r3 = a; // error: type qualifiers dropped
+const int& r3 = a; // error: cv-qualifier dropped
3656
// from result of conversion function
3657
double d2 = 1.0;
3658
double&& rrd2 = d2; // error: initializer is lvalue of related type
0 commit comments