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