Because static
class members are not stored in the class instance, that's why a static
would work.
Storing an object inside another object of the same type would break the runtime - infinite size, right?
What would sizeof
return? The size of the object needs to be known by the compiler, but since it contains an object of the same type, it doesn't make sense.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…