Are static member variables exempt from "const" declarations? Because this compiled with gcc 4.0.3:
So is it possible to change class member variables even within a constant function as long as they're declared static?Code://in the header
class A
{
static int i;
void inc() const {i++;}
}
//and in the source
int A::i = 0;
