Quote:
const double &val = 66.6; //legal
You may use a
constant only as
rvalue
hence there is no need for
val
to refer to an actual address (that is the compiler may implicitly substitute every occurrence of val with the constant
66.6
).
Note you cannot apply the same argument to the
Quote:
double &val = 66.6; //illegal
line.