#include <QtCore/qdebug.h>
#include <QtCore/qstring.h>
int main()
{
const QString &s = QString::fromUtf8("hello!");
qDebug() << &s;
([s] {
qDebug() << &s;
})();
return 0;
}
输出
0x7ffe678780a8
0x7ffe678780b0
说明我朋友说的是对的?
【 在 ble (ble) 的大作中提到: 】
: 写个例子跑一下?
--
FROM 110.81.42.*