Sunday, February 28, 2010

Static Declaration

Given: static class A {int i;} X;A a; Then: 'a' is not static. Note: X is static.
Reference: "C++ Gotchas" by Stephen C. Dewhurst. Addison-Wesley, 2002., p. 55.

No comments:

Post a Comment