14.0 Type Conversions
For Unix, in rare cases, particularly when updating a "cache" for a conceptually const object, clients will need to "cast away const". Since this is not available in C++, use the macro NON_CONST in place of "this".
Note that when compilers begin support the "mutable" keyword, this mechanism will be obsolete.
Example:
((X*) this)->updateCache(); // bad
NON_CONST->updateCache(); // better
With the mutable keyword, the updateCache() method could be declared a const method.
Generated with CERN WebMaker