Why can const int& bind to an int?
问题 In the C++ primer, I found that const int & can bind with a int object.I don't understand that,because I think const int & should bind with a const int not a int object, the int object can change, the book explain this question for that when the const int & object bind with int ; there is a temporary object between the two, for example: int a=0; const int &r=a; We can use b as the temporary value, so above is equal that: const int b=a; const int &r=b; But I think the book is not right,