Worth quoting the standard here
9.4.1 Static member functions
2) [ Note: A static member function does not have a this pointer (9.3.2). —end note ] A
staticmember
function shall not bevirtual. There shall not be astaticand a non-staticmember function with the
same name and the same parameter types (13.1).A static member function shall not be declared
const,
volatile, orconst volatile.
static functions have no this parameter. They need no cv-qualifiers.
See this answer by James McNellis
When you apply the
constqualifier to a nonstatic member function,
it affects thethispointer. For a const-qualified member function
of classC, thethispointer is of typeC const*, whereas for a
member function that is not const-qualified, thethispointer is of
typeC*.