I am trying to use a return type of const MyClass * const. However, I get a warning:
const MyClass * const
Warning: #815-D: type qualifier on return type is m
Why do you care if the pointer is changed? Doing this is like saying:
const int f() { ... }
The value returned by f() is a copy - changing it changes nothing, so there is nom point in making it const.