Saved Bookmarks
| 1. |
Are Static Class Members Covered By Transitive Const? |
|
Answer» A static class member is PART of the global STATE of a PROGRAM, not part of the state of an object. Thus, a class having a mutable static member does not VIOLATE the transitive CONSTNESS of an object of that class. A static class member is part of the global state of a program, not part of the state of an object. Thus, a class having a mutable static member does not violate the transitive constness of an object of that class. |
|