Static Class Members may not be Initialized in a Constructor
A common mistake is to initialize static class members inside the constructor body or a member-initialization list like this: class File{ private: static bool locked; private: File(); // Related Posts