I wasn't yet addressing that part of the code, just the cause of the error message. But yea, it should be const char *getName() {. The other const is not needed as the pointer itself is passed by value.
I wasn't yet addressing that part of the code, just the cause of the error message. But yea, it should be const char *getName() {. The other const is not needed as the pointer itself is passed by value.