consider the following code: const QString& M开发者_如何学JAVAyClass::getID(int index) const
Can anybody explain to me why there is a difference between these two statements? class A{}; const A& a = A();// correct