阅读背景:

从内联函数返回字符串时会创建多少个临时对象?

来源:互联网 

Consider the following code:

请考虑以下代码:

QSqlQuery *queryQt; // represents a row in a database table

inline std::string getCString(size_t col) {
     return queryQt->value(col).toString().toStdString();
}
QSqlQ



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: