Ray's playground

 

Constants(Chapter 8 of Thinking in C++)

  To put everything out in the open, you should use the mutable keyword in the class declaration to specify that a particular data member may be changed inside a const object.  

  The syntax of volatile is identical to that for const, but volatile means “This data may change outside the knowledge of the compiler.” 

posted on 2010-11-16 21:02  Ray Z  阅读(163)  评论(0编辑  收藏  举报

导航