Код: Выделить всё
double dval = 3.14;
const int &ri = dval; //Bind a const int to a plain double object.
< /code>
Преобразование кода будет: < /p>
const int temp = dval; //Create a temporary const int from the double
const int &ri = temp; //bind ri to that temporary
Подробнее здесь: https://stackoverflow.com/questions/797 ... -reference
Мобильная версия