指出即使结构或类变量为 const ,其某个成员也可以被修改
struct data { char name[20]; mutable int accesses; ... }; const data veep{"Claybourne Clodde",0,...}; strcpy(veep.name, "Joye Joux"); //not allowed veep.accesses++; //allowed
原文:https://www.cnblogs.com/suui90/p/12868158.html