☆─────────────────────────────────────☆
antiMac (antiMac) 于 (Wed Jul 16 00:56:14 2008) 提到:
What sort of performance overhead is incurred when using const in C++
programs to create classes and member functions that are considered to be ‘
const correct’?
不太清楚有什么overhead会产生。。有人知道吗?谢谢。。
☆─────────────────────────────────────☆
zlike (最终幻想) 于 (Wed Jul 16 02:30:03 2008) 提到:
貌似有难度,期待thrust的点睛之笔...
加入了const,compiler会自动加一些代码来check是否修改了member?
☆─────────────────────────────────────☆
shime (虫)