Today I got a problem. I am in the need of a static member function, const is not a must but a better. But, I didn\'t succeed in my efforts. Can an
static
const
Without getting into the details, it's because there may or may not be an object modified by the function, so const is ambiguous to the compiler.
Recall that const keeps objects constant, but there may or may not be an object here to keep constant.