1.中文版:設置一個類型為auto的引用時,初始值中的頂層常量屬性依然保留。和往常一樣,如果我們給初始值綁定一個引用,則此時的常量就不是頂層常量了。”英文版:Whenweaskforareferencetoanauto-deducedtype,top-levelconstsintheinitializerarenotignored.Asusual,constsarenottop-levelwhenwebindareferencetoaninitializer怎么理解這段話呢?能否舉例說明?
const的一些問題(c++primer 第五版)
開滿天機
2019-04-07 11:18:43
